Create a virtual environment with Python!

It is easy to create a virtual environment with the function of Python.

As a merit of developing in a virtual environment

merit


・ You can create a clean environment for each project (easy to understand)
-You can use different Python packages and versions.
(It may solve the problem that can only be done with this version ...)
-Does not interfere with unnecessary libraries.

The impression I had when creating a virtual environment was that it was very simple and easy to understand. It's easy to create, so let's create it: relaxed:

How to make

Open a command prompt and go to the location you want to create in the current directory. Easy to execute the following code in the directory where you want to create it.

Create virtual environment


virtualenv

With this alone, you can create a virtual environment named "Kasokankyo".

If you want to specify the version of pyhton,

Create virtual environment (specify Python version)


virtualenv -p python3.7 Kasokankyo

You can also specify the version.

how to use

"Activate" when using a virtual environment. When you are done using it, "deactivate" it.

activation


C:\Kasokankyo>Scripts\\activate

Invalidation


C:\Kasokankyo>Scripts\\deactivate

As a rough flow, Create a virtual environment → Activate → Run a program or install a library → Disable at the end → Re-enable when doing something The flow.

When you no longer need it, delete the entire environment (folder of Kasokankyo).

Recommended Posts

Create a virtual environment with Python!
[Python] Create a virtual environment with Anaconda
Create a virtual environment with conda in Python
Building a virtual environment with Python 3
Create a Python environment
Virtual environment with Python 3.6
Let's create a virtual environment for Python
Create a virtual environment with Python_Mac version
Build a python virtual environment with pyenv
Building a Python virtual environment
Create a directory with python
Building a Python virtual environment
How to create a Python virtual environment (venv)
Create a python3 build environment with Sublime Text3
[Venv] Create a python virtual environment on Ubuntu
Work in a virtual environment with Python virtualenv.
Create a Python virtual development environment on Windows
Build python virtual environment with virtualenv
Build a python virtual environment with virtualenv and virtualenvwrapper
Create a virtual environment with Anaconda installed via Pyenv
Create a Python environment on Mac (2017/4)
Create a python development environment with vagrant + ansible + fabric
Steps to create a Python virtual environment with VS Code on Windows
code-server Online environment (2) Create a virtual network with Boto3
Create a python environment on centos
Build a python virtual environment with virtualenv and virtualenvwrapper
When I tried to create a virtual environment with Python, it didn't work
Create a simple Python development environment with VSCode & Docker Desktop
Create a virtual environment for python on mac [Very easy]
[Pyenv] Building a python environment with ubuntu 16.04
Create a Python function decorator with Class
Building a Python3 environment with Amazon Linux2
Build a blockchain with Python ① Create a class
Create a dummy image with Python + PIL.
Create a python environment on your Mac
Let's create a free group with Python
Building a Python 3.6 environment with Windows + PowerShell
[Python] Create a Batch environment using AWS-CDK
Create Python + uWSGI + Nginx environment with Docker
[Mac] Building a virtual environment for Python
Creating a python virtual environment on Windows
Create a word frequency counter with Python 3.4
Build a modern Python environment with Neovim
Add a Python virtual environment to VSCode
Create a Python module
python virtual environment Pipenv
virtual environment in python
Python environment with docker-compose
Create a Python execution environment for Windows with VScode + Remote WSL
Try to create a python environment with Visual Studio Code & WSL
Create a C ++ and Python execution environment with WSL2 + Docker + VSCode
Create a simple Python development environment with VS Code and Docker
Create a USB boot Ubuntu with a Python environment for data analysis
Create a frame with transparent background with tkinter [Python]
Create a Vim + Python test environment in 1 minute
Ubuntu18.04.05 Creating a python virtual environment in LTS
Building a python environment with virtualenv and direnv
Create a LINE BOT with Minette for Python
Build a python environment with ansible on centos6
Building a Python environment with WLS2 + Anaconda + PyCharm
Start Django in a virtual environment with Pipenv