__ * Before reading this article, we recommend that you refer to Flowchart whether pyenv is required --Qiita. __
I would like to summarize about pyenv.
In Linux, it is a tool that manages the execution environment of Python (for example, I think that it is supposed to be used properly for 2.x series and 3.x series).
pyenv
$ sudo apt install curl llvm sqlite3 libssl-dev libbz2-dev libreadline-dev libsqlite3-dev libncurses5-dev libncursesw5-dev python-tk python3-tk tk-dev aria2
$ anyenv install pyenv
$ source ~/.bashrc
pyenv-virtualenv This plugin is used when you want to generate multiple execution environments based on a certain execution environment.
$ git clone https://github.com/yyuu/pyenv-virtualenv $(pyenv root)/plugins/pyenv-virtualenv
pyenv-ccache By using ccashe (see accelerate C / C ++ compilation with ccache-Qiita), you can use CPython (official Python implementation). A plug-in that speeds up installation.
$ sudo apt install ccache
$ git clone https://github.com/yyuu/pyenv-ccache $(pyenv root)/plugins/pyenv-ccache
pyenv-pip-update A plugin that makes it easy to update libraries managed by pip and conda.
$ git clone https://github.com/massongit/pyenv-pip-update $(pyenv root)/plugins/pyenv-pip-update
command | Contents |
---|---|
$ pyenv |
help |
$ pyenv root |
Absolute path to install pyenv |
$ pyenv shell |
Execution environment in the shell |
$pyenv shell execution environment name |
Setting the execution environment in the shell |
$ pyenv global |
Default execution environment |
$pyenv global execution environment name |
Default execution environment settings |
$pyenv install execution environment name |
Installation of the specified execution environment |
$pyenv uninstall execution environment name |
Uninstall the specified execution environment |
$ pyenv pip-update |
Library updates managed by pip and conda(pyenv-pip-update) * Execution environment that uses conda(anaconda and miniconda)For, update only the libraries managed by conda |
$pyenv virtualenv execution environment(A)Name Execution environment(B)Name |
pyenv install Execution environment installed in(A)Execution environment based on(B)To generate(pyenv-virtualenv) |
$ pyenv versions |
List of installed execution environments |
Recommended Posts