Skip to content

Instantly share code, notes, and snippets.

@Arqentum
Last active November 3, 2023 19:05
Show Gist options
  • Save Arqentum/4b90ccb6d9f1803ec1231afb42ee3537 to your computer and use it in GitHub Desktop.
Save Arqentum/4b90ccb6d9f1803ec1231afb42ee3537 to your computer and use it in GitHub Desktop.
#Python #PYENV create alias activate version
PYENV_PYTHON_VERSION=3.8.18
VENV_NAME=revrec-airflow-3.8
pyenv install $PYENV_PYTHON_VERSION
pyenv virtualenv $PYENV_PYTHON_VERSION $VENV_NAME
pyenv activate $VENV_NAME
#Switch between Python versions
#To select a Pyenv-installed Python as the version to use, run one of the following commands:
pyenv shell <version> -- select just for current shell session
pyenv local <version> -- automatically select whenever you are in the current directory (or its subdirectories)
pyenv global <version> -- select globally for your user account
# in Pycharm - add new interpreter and open new console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment