Install python (pyenv, pyenv-virtualenv)

A note when you want to use multiple pythons in your local environment Simply put, pyenv manages the version of python, and its plugin, pyenv-virtualenv, creates the python environment. You can use pyenv-virtualenv to confine the python environment.

Install pyenv

$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
$ echo "export PYENV_ROOT=$HOME/.pyenv" >> .bash_profile
$ echo "export PATH=$PYENV_ROOT/bin:$PATH" >> .bash_profile
$ echo "eval '$(pyenv init -)'" >> .bash_profile

python installation

$ pyenv install 3.5.0

Install pyenv-virtualenv

$ git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
$ echo 'eval "$(pyenv virtualenv-init -)"' >> .bash_profile

Creating an environment

pyenv virtualenv 3.5.2 app #app is the name of the environment

Enable environment settings

pyenv activate app #app is the name

Recommended Posts

Install python (pyenv, pyenv-virtualenv)
Install pyenv and pyenv-virtualenv
Install python with pyenv
python (pyenv + pyenv-virtualenv) + CentOS7 installation
install python
Install pyenv from Homebrew, install Python from pyenv
Unable to install Python with pyenv
Install Python on CentOS using Pyenv
Install Python on CentOS using pyenv
Install Python locally
Install NAOqi python
pyenv + anaconda + python3
Install Python Control
pyenv + pyenv-virtualenv (CentOS7)
CentOS8 --Install --Python3
Install Python as a Framework with pyenv
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Install python on WSL
Install pyenv on mac
Install Python on Pidora.
Install Scrapy on python3
Install Python 3.8.6 on macOS Big Sur using pyenv
Install Python on Mac
How to install python
Install Python 3 on Mac
Install python from source
I wanted to install Python 3.4.3 with Homebrew + pyenv
Install Python3.4 on CentOS 6.6
Install Python Jupyter lab
Install python external library
Install Voluptuous with Python 2.5
Install python on windows
Python PyTorch install tips
Install Python 2.7.3 on CentOS 5.4
Install Python 3.3 on Ubuntu 12.04
Install Python 3.4 on Mac
Python version switching (pyenv)
Install pyenv on OSX
Install Python 3.6 on Docker
Install Python (for Windows)
Building a Python environment for pyenv, pyenv-virtualenv, Anaconda (Miniconda)
mac OS X 10.15.x pyenv Python If you can't install
Install the latest stable Python with pyenv (both 2 and 3)
[Python] Django environment construction (pyenv + pyenv-virtualenv + Anaconda) for macOS
Install pyenv on Raspberry Pi and version control Python
Install the latest Python from pyenv installed with homebrew
Install Python environment on local PC (pyenv, venv on Mac)
[2020.8 latest] How to install Python
How to install Python [Windows]
Install Python 3.8 on RHEL 8 (AppStream)
Install Python and Flask (Windows 10)
Install Python environment with Anaconda
Install pygame on python3.4 on mac
Windows10: Install python dlib library
Install Python 3.8 on CentOS 7 (SCL)
When pyenv install BUILD FAILED
Install external libraries with Python
Change python version using pyenv
Install multiple versions of Python
Install pandas 0.14 on python3.4 [on Mac]
Install Python 3.7 and Django 3.0 (CentOS)