Created
August 15, 2022 08:22
-
-
Save hanifa2102/e3edaaba637d0985376dcb208282aba0 to your computer and use it in GitHub Desktop.
PyEnv /Venv Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Track which python to use for diff projs | |
pyenv install -l | |
pyenv install <python-version> | |
#Local (for folder specific) or Global Python | |
pyenv local 3.10.6 | |
pyenv global 3.7.1 | |
# Track which pip packages for diff projs | |
python -m venv .venv | |
.venv\Scripts\activate | |
VS code integration (Cntrl+ Shift + P) | workspace setting
settings.json => {
"python.terminal.activateEnvironment": true
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jupyter
#Link venv kernel to jupyter notebook
ipython kernel install --user --name=venv
#Unlink
jupyter-kernelspec uninstall venv