[Python] What is virtualenv

What is virtualenv

If you install Python normally on your system, multiple versions will not coexist.

Therefore, virtualenv can be used only when an independent Python environment is specified.

How to use virtualenv

If the current working directory is project /

$ virtualenv ENV_NAME

This command creates a globally installed copy of Python under project / ENV_NAME (* ENV_NAME can be specified as you like with the name of the copy environment)

The environment is now copied, but even if you type the python command in the terminal, python for the entire system will start.

$ source ENV_NAME/bin/activate

Now when you type the python command, ʻENV_NAME / bin / python will be executed. ({Copy environment path} / bin:` is added to the beginning of PATH)

If you want to create a copy environment other than Python for the entire system

$ virtualenv -p /path/to/other/python ENV_NAME

There is pythonz etc. as a tool to insert various versions of Python that is the copy source.

Recommended Posts

[Python] What is virtualenv
What is python
What is Python
[Python] What is Pipeline ...
[Python] Python and security-① What is Python?
[Python] * args ** What is kwrgs?
What is a python map?
Python Basic Course (1 What is Python)
What is Python? What is it used for?
[Python] What is @? (About the decorator)
[python] What is the sorted key?
What is the python underscore (_) for?
Python> What is an extended slice?
What is namespace
What is copy.copy ()
Python is easy
What is Django? .. ..
What is dotenv?
What is POSIX?
What is Linux
What is klass?
What is SALOME?
What is Linux?
What is hyperopt?
Python is instance
What is Linux
python in virtualenv
What is pyvenv
What is __call__
What is Linux
[Python] What is pandas Series and DataFrame?
[Python] What is inherited by multiple inheritance?
What kind of programming language is Python?
Python learning basics ~ What is type conversion? ~
What is "mahjong" in the Python library? ??
What is a dog? Python installation volume
[What is an algorithm? Introduction to Search Algorithm] ~ Python ~
python int is infinite
What is a distribution?
What is Piotroski's F-Score?
What is "functional programming" and "object-oriented" in Python?
What is Raspberry Pi?
What is a terminal?
What is wheezy in the Docker Python image?
[PyTorch Tutorial ①] What is PyTorch?
I tried Python! ] I graduated today from "What is Python! Python!"!
What is hyperparameter tuning?
What is JSON? .. [Note]
What is a pointer?
What are you comparing with Python is and ==?
What is ensemble learning?
What is TCP / IP?
[Introduction to Udemy Python 3 + Application] 54. What is Docstrings?
What is an iterator?
What is UNIT-V Linux?
Tell me what a conformal map is, Python!
What is machine learning?
[Ruby / Python / Java / Swift / JS] What is an algorithm?
[Python] What is energy data? Calender Heatmap [Plotly] Memo
Basics of Python learning ~ What is a string literal? ~
What is God? Make a simple chatbot with python