Pages

Saturday 4 December 2021

Python

setups and commands


pipenv


pip install --user pipenv
python -m site --user-base //add 'bin' to that and append to PATH.
pipenv install <module-name>
pipenv shell

pip


pip freeze
pip list

venv

python -mvenv  myvenv
source myvenv/bin/activate  # Activate the venv
deactivate # Command to deactivate the venv