Python
| Email: | distutils-sig@python.org |
|---|
Python Python
(!)Python
Python distribution guide
Python
pipPython 3.4 Python- A virtual environment is a semi-isolated Python environment that allows packages to be installed for use by a particular application, rather than being installed system wide.
venvPython 3.3 Python Python 3.4pipvirtualenvvenv( predecessor) to. It allows virtual environments to be used on versions of Python prior to 3.4, which either dont providevenvat all, or arent able to automatically installpipinto created environments.- The Python Packaging Index is a public repository of open source licensed packages made available for use by other Python users.
- Python Packaging Authority issue tracker GitHub BitBucket
distutilsPython 1998distutils(Python )
3.6 : Python 3.3 3.4 ``pyvenv``Python 3.6
3.5 : venv
Python Packaging Index
python -m pip install SomePackage
POSIX (Max OS X Linux ) virtual environment
Windows Python PATH
> < :
python -m pip install SomePackage==1.0.4 # specific version
python -m pip install "SomePackage>=1.0.4" # minimum version
install :
python -m pip install --upgrade SomePackage
pip Python Packaging User Guide
Creation of virtual environments is done through the venv module.
Installing packages into an active virtual environment uses the commands shown
above.
Python
A number of scientific Python packages have complex binary dependencies, and
arent currently easy to install using pip directly. At this point in
time, it will often be easier for users to install these packages by
other means
rather than attempting to install them with pip.
Python
Linux Mac OS X POSIX Python -m pip
python2 -m pip install SomePackage # default Python 2
python2.7 -m pip install SomePackage # specifically Python 2.7
python3 -m pip install SomePackage # default Python 3
python3.4 -m pip install SomePackage # specifically Python 3.4
pip
Windows Python py -m
py -2 -m pip install SomePackage # default Python 2
py -2.7 -m pip install SomePackage # specifically Python 2.7
py -3 -m pip install SomePackage # default Python 3
py -3.4 -m pip install SomePackage # specifically Python 3.4
Python
wheel Windows Mac OS X wheels Python Packaging Index
Some of the solutions for installing scientific software
that are not yet available as pre-built wheel files may also help with
obtaining other binary extensions without needing to build them locally.