[PYTHON] virtualenv For the time being, this is all!

I created it because I stumbled many times when creating a virtual environment for Python.

Before creating a virtual environment ...

You need to install virtualenv, so install it.

$ pip install virtualenv

Creating a virtual environment

$ virtualenv <DIR>

Start virtual environment

$ source <DIR>/bin/activate

When the virtual environment starts, the virtual environment name is displayed in parentheses on the left side of the prompt as shown below.

(<DIR>) XXX:YYY UserName$ 

Exit the virtual environment

$ deactivate

When the virtual environment is closed, the virtual environment name on the left side of the prompt disappears as shown below.

XXX:YYY UserName$ 

reference

Recommended Posts

virtualenv For the time being, this is all!
For the time being, import them into jupyter
Make a histogram for the time being (matplotlib)
Use logger with Python for the time being
Run yolov4 "for the time being" on windows
I played with Floydhub for the time being
Try using LINE Notify for the time being
Molecular dynamics simulation to try for the time being
I will install Arch Linux for the time being.
Kaggle for the first time (kaggle ①)
Kaguru for the first time
What is the interface for ...
I don't know what HEIC is. But for the time being, let's use PNG!
Write this in the ttl file for the time being for automatic SSH login with Teraterm
I want to move selenium for the time being [for mac]
I tried running PIFuHD on Windows for the time being
[Introduction to Reinforcement Learning] Reinforcement learning to try moving for the time being
For the time being, try using the docomo chat dialogue API
I want to create a Dockerfile for the time being.
If you're learning Linux for the first time, do this!
See python for the first time
Start Django for the first time
Java programmer tried to touch Go language (for the time being)
How to use the asterisk (*) in Python. Maybe this is all? ..
Challenge image classification by TensorFlow2 + Keras 1-Move for the time being-
Let's touch Google's Vision API from Python for the time being
For the time being, I want to convert files with ffmpeg !!
Try using FireBase Cloud Firestore in Python for the time being
I made a function to check if the webhook is received in Lambda for the time being
I tried tensorflow for the first time
Challenge image classification with TensorFlow2 + Keras CNN 1 ~ Move for the time being ~
[Python] [Machine learning] Beginners without any knowledge try machine learning for the time being
MongoDB for the first time in Python
Let's try Linux for the first time
Find out where the java entity is on Linux (CentOS this time)
Try adding an external module to pepper. For the time being, in requests.
I bought Sipeed Lichee Zero so I set it up for the time being
Let's display a simple template that is ideal for Django for the first time
I tried using scrapy for the first time
Wagtail is the best CMS for Python! (Perhaps)
[Note] Deploying Azure Functions for the first time
I tried python programming for the first time.
This is the only basic review of Python ~ 1 ~
This is the only basic review of Python ~ 2 ~
This is your choice for env file management!
Is the moon the trigger for the huge earthquake? -> Moon-like
I tried Mind Meld for the first time
This is the only basic review of Python ~ 3 ~
Try posting to Qiita for the first time
Import audit.log into Splunk and check the behavior when Splunk is started for the first time
I will try to summarize the links that seem to be useful for the time being
Until you run a Flask application on Google App Engine for the time being
Until you can install blender and run it with python for the time being
What I got into Python for the first time
I tried Python on Mac for the first time.
[Python] This is easy! Search for tweets on Twitter
Register a task in cron for the first time
For the first time, I learned about Unix (Linux).
Embedding in datetime when only the time is known
Electron is the best solution for Python multi-platform development
Creating a list when the nomenclature is a fixed time