![]() ![]() To list all of your python versions and virtual environments.To deactivate (or exit out of) a virtual environment.To verify that your setup was completed properly, when you run pyenv which python you should see $HOME/.pyenv/versions/test-venv/bin/python To use your virtual environment simply run pyenv activate test-venv Create your python virtual environment named test-venv.Now you are ready to install the version of Python you need for your project and create your first virtual environment based on it. zshenvĪt this point, when you run which python in your terminal window it should return $HOME/.pyenv/shims/python NOTE : If you use zsh instead of bash, replace. Git clone $(pyenv root)/plugins/pyenv-virtualenvĮcho 'eval "$(pyenv virtualenv-init -)"' > ~/.bash_profile ![]() Libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev \ Libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \ ![]() NOTE: Make sure eval “$(pyenv init -)” is placed toward the end of the shell configuration file since it manipulates PATH during the initialization.ĭetailed instructions can be found here, but you can just run these commands in your terminal sudo apt-get install -y build-essential libssl-dev zlib1g-dev \ brew updateĮcho -e 'if command -v pyenv 1>/dev/null 2>
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |