Cheatsheet For Conda, Pipenv GitHub
Cheatsheet For Conda, Pipenv GitHub
ziritrion / pythonenvs.md
Last active last month
Star
pythonenvs.md
Conda
1. Create a virtual environment
conda create --name my_env_name python=3.8 or whatever Python version you
may need.
2. List available envs (2 different ways
conda env list
8. Update conda
conda update conda
https://gist.github.com/ziritrion/8024025672ea92b8bdeb320d6015aa0d 1/3
12/15/22, 12:09 PM Cheatsheet for Conda, Pipenv · GitHub
16. Create a new environment and install dependencies listed in YML file.
conda env create -f environment.yml
Pipenv
pipenv does not have built-in package search; make sure you search for the packages at
PyPI.
The environments are based on the folder you're on. There is no need to manually name
them, and there is no environment activation to take care of per se.
2. Access the pipenv shell (necessary for enabling the virtualenv and for your script to
find the installed packages).
pipenv shell
4. Install all dependencies to the system, avoiding virtualenvs entirely (useful for
deployment in containers)
pipenv install --system --deploy
https://gist.github.com/ziritrion/8024025672ea92b8bdeb320d6015aa0d 2/3
12/15/22, 12:09 PM Cheatsheet for Conda, Pipenv · GitHub
Install pip
https://gist.github.com/ziritrion/8024025672ea92b8bdeb320d6015aa0d 3/3