sowjumn / python_pro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PIP commands

Open python interactive terminal >python

List the pip version pip --version

See the pip help command pip help

Check the version of python python --version

List currently installed packages pip list

Install a package pip install <package> pip install package_name==version_num

Uninstall a package(Doesnt uninstall dependent packages) pip uninstall <package>

Location for 3rd party packages pypi

Output package versions pip freeze > requirements.txt

Install all packages in requirements file pip install -r requirements.txt

Uninstall all packages in requirements file pip uninstall -r requirements.txt

Create a virtual environment python -m venv environment-name

Source the environment to activate it source environment-name/bin/activate

About