[Python] How to use virtualenv

Overview

Shows how to use virtualenv, a Python package.

What is virtualenv

It is used to set up a Python virtual environment under a specific directory. This makes it possible to manage the versions of Python interpreters, packages, etc. individually for each project.

Basic usage

Get virtualenv $ sudo pip install virtualenv Version confirmation $ virtualenv --version Build a virtual environment under the directory $ virtualenv <dir_name> Enable virtual environment $ . <dir_name>/bin/activate Disable virtual environment (dir_name)$ deactivate When erasing the virtual environment, it is OK to erase all directories $ rm -rf <dir_name>

Recommended Posts

[Python] How to use virtualenv
How to use Virtualenv
How to use virtualenv
python3: How to use bottle (2)
[Python] How to use list 1
How to use Python argparse
[Note] How to use virtualenv
Python: How to use pydub
[Python] How to use checkio
[Python] How to use input ()
How to use Python lambda
python3: How to use bottle (3)
python3: How to use bottle
How to use Python bytes
Python: How to use async with
[Python] How to use Pandas Series
How to use Requests (Python Library)
How to use SQLite in Python
How to use virtualenv with PowerShell
[Python] How to use list 3 Added
How to use Mysql in python
Python: How to use pydub (playback)
How to use PubChem in Python
[Python] How to use Typetalk API
How to use xml.etree.ElementTree
How to use Python-shell
[Python] Summary of how to use pandas
[Introduction to Python] How to use class in Python?
How to use tf.data
How to use Seaboan
How to use image-match
How to use shogun
How to install Python
How to use Pandas 2
How to install and use pandas_datareader [Python]
How to use numpy.vectorize
How to use pytest_report_header
How to install python
How to use partial
How to use Bio.Phylo
[Python] How to use import sys sys.argv
How to use x-means
How to use WikiExtractor.py
How to use IPython
[Python] Organizing how to use for statements
Memorandum on how to use gremlin python
[Python2.7] Summary of how to use unittest
How to use Matplotlib
How to use iptables
python: How to use locals () and globals ()
How to use __slots__ in Python class
How to use TokyoTechFes2015
How to use dictionary {}
How to use Pyenv
How to use list []
How to use "deque" for Python data
How to use python-kabusapi
How to use Python zip and enumerate
[Python] Understand how to use recursive functions
How to use OptParse
Summary of how to use Python list