banner



How To Install Python On Windows 8.1 64 Bit

The Pip Package Manager is the de facto standard for managing Python distributions, and is recommended for installing Python packages for Windows.

Pip is installed automatically with Python 2 (>=two.7.9) and Python 3 (>=3.iv) installations. The pip command has options for installing, upgrading and deleting packages, and can be run from the Windows control line. By default, pip installs packages located in the Python Package Alphabetize (PyPI), but can also install from other indexes. For more information on how to utilise pip, meet the Pip Packet Installation instructions below.

Wheels and Windows

Python packages installed with pip on Windows are typically bundled into 'wheels' prior to installation. A cycle is a nada-manner archive that contains all the files necessary for a typical package installation. Wheels have a .whl extension, and provide a simpler installation than 'non-cycle' packages.

Depending on the operating organisation that a package was built for and built on, the resulting bike may not include file requirements for Windows. Appveyor offers a hosted continuous integration service that developers can utilise to package Python code for Windows deployments. Wheels congenital with Appveyor comprise Windows support past default, and are unremarkably recognizable by their proper noun, e.yard. packagename-2.viii-cp37-cp37m-win_amd64.whl.

Installation Requirements

Earlier packages tin can be installed, ensure that your existing Python installation meets the requirements. Requirements volition differ depending on whether you installed Python into a virtual environment using venv or virtualenv:

  • Venv automatically installs pip into Python iii.4+ virtual environments
  • Virtualenv automatically installs pip and wheel into Python 2.7+ and Python 3.3+ virtual environments

Note: If you're using some form of enhanced shell such equally IPython, and so prefix the command with the ! character, e.1000. !pip install < packagename >

  1. Verify that Python is installed:

Open up a Windows control window and run the post-obit command to check that a suitable Python version is installed:

          python --version        

Output should exist like to:

          Python 3.6.6          .        

If Python is non installed, you tin can download a re-create of ActiveState's Python, ActivePython , for free.

  1. Verify that Pip is installed:
          pip --version        

Output should exist like to pip 19.3.1 from c:\python36\lib\site-packages\pip (python three.half-dozen)

  1. Update Pip and Cycle to ensure you have the latest version installed:
          pip install --upgrade pip wheel        

Pip Package Installation

To install a package:

          pip install <                      packagename                    >        

To install a packet from a repository other than PyPI,  for instance, Github:

          pip install -e git+<                      https://github.com/myrepo.git#egg=packagename                    >        

To upgrade a packet that is already installed:

          pip install --upgrade <                      packagename                    >        

To uninstall a parcel:

          pip uninstall <                      packagename                    >                  

To evidence help for pip, including complete command usage and options:

          pip -h          pip --help        

Pipenv

Pipenv is a new tool for managing dependencies. It uses pip and virtualenv nether the hood, and simplifies their usage with a single command line syntax. Similar venv , pipenv automatically creates a separate virtual surroundings for each projection.

To install, upgrade or uninstall packages within pipenv, just replace the pip control with pipenv. For example, the following command installs a named parcel from PyPI:

          pipenv install <                      packagename                    >        

You can besides install packages from locations other than PyPI. For example, the following command installs the requests package from a Github repository:

          pipenv install -eastward git+https://github.com/requests/requests.git#egg=requests        

Transmission Package Installation

Nigh Python packages are at present designed to be compatible with pip. If you accept a package that'due south not compatible, and so you'll demand to do a manual installation.

How to manually install a Python package:

  1. Download the package and extract it into a local directory.

2a.  If the package came with its own ready of installation instructions, they should be followed.

2b.  If not, then open a control window and cd into the directory, and enter:

          python setup.py install        

How ActiveState Can Help

ActiveState provides a unified cantankerous-platform toolchain for modern Python package management. It can replace the complex and difficult-to-maintain in-house solutions built from multiple package managers, environment management tools and other solutions.

By adopting the ActiveState Platform, developers tin:

  • Automated building of packages from source, including link C libraries without the need for a local build environs.
  • Automated resolution of dependencies (or suggestions on how to manually resolve conflicts), ensuring that your environs always contains a set of known skillful dependencies that work together.
  • Central management of a unmarried source of truth for your environment that can exist deployed with a single control to all evolution and CI/CD environments, ensuring consistent reproducibility.
  • Automated installation of virtual Python environments on Windows or Linux without requiring prior setup.
  • The ability to find, set up and automatically rebuild vulnerable environments, thereby enhancing security and dramatically reducing time and effort involved in resolving CVEs.
  • Visually seeing which versions of which packages are approved for use, thereby taking the guesswork out of evolution.

Those that prefer to piece of work from the command line can leverage the ActiveState Platform's CLI, the Country Tool, which acts as a universal parcel managing director for Python, and provides access to near of the features offered by the Platform.

Python Package management

Modern Python Package Management

ActiveState provides a unified cross-platform toolchain for modern Python bundle management. It tin replace the complex and difficult-to-maintain in-firm solutions built from multiple bundle managers, surround direction tools and other solutions.

By adopting the ActiveState Platform, developers can:

  • Increase the security of Python environments
  • Improve the transparency of your open source supply concatenation
  • Dramatically reduce package and surroundings direction overhead
  • Eliminate dependency hell
  • Reduce "works on my car" bug

Ultimately, developers that are willing to adopt the ActiveState Platform will spend less time wrestling with tooling and more time focused on doing what they exercise best: coding.

To try the ActiveState Platform for yourself, sign-upwards for a free account.

Recommended Reads

How to Manually Install Python Packages

Data Canvas: ActiveState Platform's Hosted Antiquity Repository

Source: https://www.activestate.com/resources/quick-reads/python-package-installation-on-windows/

Posted by: rodriguezyeassuileat.blogspot.com

0 Response to "How To Install Python On Windows 8.1 64 Bit"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel