pyenv install –list will show all available Python versions to install). (By the way, there is no need to memorize these. Installed Python-3.4.0 to /home/staff/jmoreira/.pyenv/versions/3.4.0 Installed readline-6.3 to /home/staff/jmoreira/.pyenv/versions/3.4.0 For instance, let’s go now to the cutting edge of python: ~$ pyenv install 3.4.0 Let’s start by installing another python version. pyenv now allows you to expand upon this version. That’s what’s shown in the above command. Usually you will only have one version of python installed, the system-wide version. * system (set by /home/staff/jmoreira/.pyenv/version) This is the one-liner provided by the automatic installer. pyenvĮcho 'export PYENV_ROOT="$HOME/.pyenv"' > ~/.bashrcĮcho 'export PATH="$PYENV_ROOT/bin:$PATH"' > ~/.bashrcĮcho 'eval "$(pyenv init -)"' > ~/.bashrc This works best for our Ubuntu 12.04 workstations which default to a. bash_profile on Mac) to enable pyenv's auto-complete functionality. Whichever way you decide to go, after checking out the repository, be sure to add a couple of lines to your. If you're using a Mac, I highly recommend installing pyenv with Homebrew (none of that MacPorts shenanigans). So let’s start! Installationįollow the installation instructions or use the automatic installer. All this is done on *NIX-style machines (Linux and OS X) without depending on Python itself and it works at the user-level–no need for any sudo commands. Previously known as Pythonbrew, pyenv lets you change the global Python version, install multiple Python versions, set directory (project)-specific Python versions, and yes create/manage virtual python environments ("virualenv's"). Meet pyenv: a Simple Python Version Management tool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |