![]() To upgrade pyenv in the future, use upgrade instead of install.Īfter installing, add pyenv init to your shell to enable shims and autocompletion. First, we must install pyenv using homebrew: $ brew install pyenv Pyenv is a simple Python version manager that can manage and install different versions of Python. Save the file and open a new terminal to take the new $PATH into account (everytime you open a terminal. Let's upgrade them both: $ pip install -upgrade setuptoolsĮxecutable scripts from Python packages you install will be put in /usr/local/share/python, we already had this in the Env.sh file created before. It also installed Pip (and its dependency Setuptools), which is the package manager for Python. Running $ which python should output /usr/local/bin/python. When finished, you should get a summary in the terminal. The following command will install Python 2.7 and any dependencies required (it can take a few minutes to build everything): $ brew install python 2, 3, and anaconda) then you should use pyenv. ![]() If you plan to use multiple versions of Python (e.g. ![]() There are two ways to install Python, (1) Homebrew and (2) Pyenv. But you don't want to mess with the system Python (some system tools rely on it, etc.), so we'll install our own version(s). OS X, like Linux, ships with Python already installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |