pyenv note

install This is best. https://github.com/shogito/ansible-pyenv

virtualenv via pyenv virtualenv

python


#create venv
pyenv virtualenv <venv-name>

#activate venv
pyenv activate <venv-name>

#deactivate venv
pyenv deactivate <venv-name>

#list venvs
pyenv virtualenvs

#delete venv
pyenv uninstall <venv-name>

virtualenvwrapper via pyenv

python


#enable workon command
pyenv virtualenvwrapper

#create venv
mkvirtualenv <venv-name>

#workon...
workon <venv-name>

use venv from cron or shell-script

python


# 1st activate some venv
which python
~/.virtualenvs/<venv-name>/bin/python

# call
~/.virtualenvs/<venv-name>/bin/python <python script path> <args>...

Recommended Posts

pyenv note
Note
Note
Django note 4
GroupBy Note
pyenv notes
system-wide pyenv
pyenv memo
[Note] Setting .bash_profile after installing pyenv
argparse note
Django Note 5
Note: Python
pyenv summary
Ansible Note
Python note
Django Note 1
direnv note
Django note 3
Django note 2
[Note] RepresenterError
[Note] Image resizing
Python study note_002
Note: Python Decorator
Python programming note
[Python] Learning Note 1
Kinesis Firehose Note
Python study note_004
[Note] Regarding Tensorflow
Note: confusing nonlocal
pyenv + virtualenv + Anaconda
Markdown Beginner's Note
pyenv installation notes
pyenv for linux
PyData.Osaka Meetup # 2 Note
Python study note_003
Completely personal note
Flask's personal note # 2
pyenv + anaconda + python3
Jupyter Study Note_002
TensFlow Preferences Note
[Note] openCV + python
Note about awk
Just a note
PyCharm Preferences Note
pyenv cheat sheet
Note: List comprehension
Python beginner's note
pyenv + pyenv-virtualenv (CentOS7)
Flask's personal note # 1
Jupyter Study Note_003
Jupyter Study Note_007
[Note] pandas unstack
Jupyter Study Note_005