Python3.6.3
. If you do not have Python,please install the latest 3.x version from python.org or refer to theInstalling Python section of the Hitchhiker’s Guide to Python.!
character:{sys.executable}
rather than plain python
inorder to ensure that commands are run in the Python installation matchingthe currently running notebook (which may not be the same Pythoninstallation that the python
Merriweather font for mac. command refers to).python
command in this tutorialwith python3
and the pip
command with pip3--user
. Do notrun any of the commands in this tutorial with sudo
: if you get apermissions error, come back to the section on creating virtual environments,set one up, and then continue with the tutorial as written.pip
isn’t already installed, then first try to bootstrap it from thestandard library:pip
:pythonget-pip.py
. 2 This will install or upgrade pip.Additionally, it will install setuptools and wheel if they’renot installed already.pythonget-pip.py--prefix=/usr/local/
to install in /usr/local
which is designed for locally-installedsoftware.pip
alone is sufficient to install from pre-built binary archives,up to date copies of the setuptools
and wheel
projects are usefulto ensure you can also install from source archives:tutorial_env
subdirectory,and configure the current shell to use it as the default python
environment.SomeProject
to the latest from PyPI.--user
flag:--user
flag has no effect when inside a virtual environment- all installation commands will affect the virtual environment.SomeProject
defines any command-line scripts or console entry points,--user
will cause them to be installed inside the user base’s binarydirectory, which may or may not already be present in your shell’sPATH
. (Starting in version 10, pip displays a warning wheninstalling any scripts to a directory outside PATH
.) If the scriptsare not available in your shell after installation, you’ll need to add thedirectory to your PATH
: 2018 bmw r1150r rockster owners manual.python-msite--user-base
and adding bin
to the end. For example,this will typically print ~/.local
(with ~
expanded to the absolutepath to your home directory) so you’ll need to add ~/.local/bin
to yourPATH
. You can set your PATH
permanently by modifying ~/.profile.py-msite--user-site
and replacing site-packages
with Scripts
. Forexample, this could returnC:UsersUsernameAppDataRoamingPython36site-packages
so you wouldneed to set your PATH
to includeC:UsersUsernameAppDataRoamingPython36Scripts
. You can set your userPATH
permanently in the Control Panel. You may need to log out for thePATH
changes to take effect.--extra-index-url
flag to direct pip to usethat index.venv
(a stdlib alternative tovirtualenv) will create virtualenv environments with pip
pre-installed, thereby making it an equal alternative tovirtualenv.