Construction of Python local development environment Part 2 (pyenv-virtualenv, pip usage)

How to use pyenv-virtualenv

virtualenv creation & configuration

% pyenv versions
  system
  2.7.6
% pyenv virtualenv 2.7.6 test-env
% pyenv virtualenvs
  * test-env (created from $PYENV_ROOT/versions/2.7.6)
% pyenv activate test-env
% pyenv version
  * test-env (set by $PYENV_ROOT/versions/2.7.6)

virtualenv erase

% pyenv uninstall test-env
% pyenv virtualenvs
% pyenv versions

How to use pip

Install package

% pip install nose
% pip list
  nose (x.x.x)

Freeze installed packages

% pip freeze > pip.list
% cat pip.list
  argparse==1.2.1
  configobj==5.0.6
  coverage==3.7.1
  logging==0.4.9.6
  mysql-connector-python==2.0.1
  nose==1.3.4
  six==1.8.0
  unittest-xml-reporting==1.9.2
  wsgiref==0.1.2

Install the frozen package

% pip install -r pip.list

Uninstall a package

% pip uninstall nose
% pip list

Recommended Posts

Construction of Python local development environment Part 2 (pyenv-virtualenv, pip usage)
Construction of Python local development environment Part 1 (pyenv, pyenv-virtualenv, pip installation)
Python development environment construction
python2.7 development environment construction
[MEMO] [Development environment construction] Python
Environment construction of python2 & 3 (OSX)
Environment construction of python and opencv
[Python3] Development environment construction << Windows edition >>
Python development environment construction on macOS
Environment construction of python3.8 on mac
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
Emacs Python development environment construction memo
Python (anaconda) development environment construction procedure (SpringToolsSuites) _2020.4
Addition of local development environment on MacOS
Python3 + venv + VSCode + macOS development environment construction
Construction of development environment for Choreonoid class
Windows + gVim + Poetry python development environment construction
Python environment construction
Environment construction (python)
python environment construction
Python --Environment construction
Python environment construction
python environment construction
Installation of Python3 and Flask [Environment construction summary]
Poetry-virtualenv environment construction with python of centos-sclo-rh ~ Notes
python development environment -use of pyenv and virtualenv-
Python local development environment construction template [Flask / Django / Jupyter with Docker + VS Code]
Unification of Python environment
python windows environment construction
homebrew python environment construction
Usage of Python locals ()
About Python development environment
Development environment in Python
Mac environment construction Python
Python environment construction @ Win7
Google App Engine / Python development environment construction procedure (late 2014)
Web application made with Python3.4 + Django (Part.1 Environment construction)
Python development environment construction 2020 [From Python installation to poetry introduction]
QGIS3 Python plugin development environment construction with VSCode (macOS)
[Python] Django environment construction (pyenv + pyenv-virtualenv + Anaconda) for macOS
[Python] Chapter 01-02 About Python (Execution and installation of development environment)
Python + Anaconda + Pycharm environment construction
[Python] Correct usage of map
Unify the environment of the Python development team starting with Poetry
Django development environment construction memo
Python environment construction (Windows10 + Emacs)
CI environment construction ~ Python edition ~
Automatic scraping of reCAPTCHA site every day (1/7: python environment construction)
Memo of python + numpy/scipy/pandas/matplotlib/jupyterlab environment construction on M1 macOS (as of 2020/12/24)
[Memo] Construction of cygwin environment
Python environment construction For Mac
Anaconda3 python environment construction procedure
Python3 environment construction (for beginners)
Organize your Python development environment
Python environment construction and TensorFlow
[ev3dev × Python] Build ev3dev development environment
Python environment construction under Windows7 environment
Sample usage of Python pickle
[For organizing] Python development environment
Basic usage of Python f-string
django project development environment construction