Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.44 KB

File metadata and controls

37 lines (24 loc) · 1.44 KB

pip

pip is the default package manager in Python. It is like the npm and gem in Javascript and Ruby.

pip2 and pip3

Depending on when and how your system is installed, you may end up with pip, pip3, pip. Double check who is who from the version information:

%pip2 --version
pip 18.0 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)
%pip3 --version
pip 18.0 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
%pip --version
pip 18.0 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)

In my current system, pip refers to pip2 which is used in combination with Python 2. Different from them, pip3 is used in combination with Python 3.

Install pip3

pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4. You can type python --version to check out current version. If you are the older versions, please check out here to install and upgrade pip.

If you install pip in anaconda environment, try to use !conda install pip3 in Jupyter.

pip3 install modules

please see here. If you install in Jupyter, add ! ahead of the command.