[PYTHON] Summary of how to use pyenv-virtualenv

There is a virtualenvwrapper, and it seems that everyone is using it.

I used only virtualenv because there are various environment management tools for python and I'm not sure.

Installation

brew install pyenv-virtualenv

.zshrc


export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
pyenv install 3.4.2
pyenv global 3.4.2
pyenv versions
> system
> *3.4.2

Environment creation

pyenv virtualenv 3.4.2 hogehoge
pyenv versions
> system
> *3.4.2
> hogehoge

The environment cut by virtualenv and the environment installed by pyenv appear in the same line.

Environment switching

cd workspace
pyenv local hogehoge # .python-version is created

Environment deletion

pyenv uninstall hogehoge

Recommended Posts

Summary of how to use pyenv-virtualenv
Summary of how to use pandas.DataFrame.loc
Summary of how to use csvkit
How to use pyenv-virtualenv
[Python] Summary of how to use pandas
[Python2.7] Summary of how to use unittest
Summary of how to use Python list
[Python2.7] Summary of how to use subprocess
Summary of how to use MNIST in Python
[Python] Summary of how to use split and join functions
scikit-learn How to use summary (machine learning)
How to calculate Use% of df command
Jupyter Notebook Basics of how to use
Basics of PyTorch (1) -How to use Tensor-
Summary of how to write AWS Lambda
[Question] How to use plot_surface of python
How to use Python-shell
How to use tf.data
How to use virtualenv
How to use Seaboan
How to use shogun
How to use Pandas 2
How to use Virtualenv
How to use numpy.vectorize
How to use pytest_report_header
How to use partial
How to use Bio.Phylo
How to use SymPy
How to use x-means
How to use WikiExtractor.py
How to use IPython
How to use virtualenv
How to use Matplotlib
How to use iptables
How to use numpy
How to use TokyoTechFes2015
How to use venv
How to use dictionary {}
How to use Pyenv
How to use list []
How to use python-kabusapi
How to use OptParse
How to use return
How to use dotenv
How to use Go.mod
How to use imutils
How to use import
How to use folium (visualization of location information)
A simple example of how to use ArgumentParser
[Python] How to use two types of type ()
Summary of how to import files in Python 3
Not much mention of how to use Pickle
Summary of studying Python to use AWS Lambda
How to use Qt Designer
How to use search sorted
[gensim] How to use Doc2Vec
python3: How to use bottle (2)
Understand how to use django-filter
How to use the generator
[Python] How to use list 1
How to use FastAPI ③ OpenAPI