Use of virtualenv, Python's independent execution environment

background

If you have a library you want to use on the company shared server, you may want to prepare an independent execution environment, so that memo

Installation

$ pip install virtualenv $ virtualenv Then, when Help of virtualenv is displayed, installation is completed.

Start using

On a suitable directory, $ virtualenv --distribute newenv $ source newenv/bin/activate (newenv)$ *** Done when the prompt changes

Check the installation library and install in another environment

Check installed libraries (newenv)$ pip freeze

Installation in another environment (newenv)$ pip freeze > packages.txt (newenv2)$ pip install -r packages.txt

Recommended Posts

Use of virtualenv, Python's independent execution environment
python development environment -use of pyenv and virtualenv-
Make full use of Python's str.format
Build the execution environment of Jupyter Lab
Use the latest pip in a virtualenv environment
zsh settings that facilitate the use of virtualenv
Use multiple versions of python environment with pyenv
Use Python installed with pyenv for PL / Python execution environment
Preparing the execution environment of PyTorch with Docker November 2019
[Python] Chapter 01-02 About Python (Execution and installation of development environment)
Convenient use of ipython
How to use virtualenv
Use pipdeptree with virtualenv
Unification of Python environment
How to use Virtualenv
Introduction of Virtualenv wrapper
Graceful use of MySQLdb
How to use virtualenv
Measurement of execution time
pyenv, virtualenv Use docker to manage the environment without using
Use Colab only as an external GPU environment (as of 2020.6 / Mac environment)