Skip to content

Latest commit

 

History

History
39 lines (21 loc) · 755 Bytes

pip.md

File metadata and controls

39 lines (21 loc) · 755 Bytes

General pip commands

Upgrade pip

pip install --upgrade pip

Output installed packages in requirements format

pip freeze

Install a library

pip install <library-name>

for ex:

pip install flask

pip install Flask-RESTful - this will install flask as well

Show version of installed library

pip show <library-name

for ex:

pip show vaex

Create a virtual Python environment

  • pip install virtualenv - this will install virtualvm

  • this will create a folder named venv and keep python 3.5 inside it

    • virtualenv venv --python=python3.5 (Linux)
    • ./venv/Scripts/activate.bat (Windows)
  • source venv/bin/activate - this will activate the venv

  • python --version - verify Python's version in the venv