I installed Python and created a virtual environment from the venv
command, but using ** Anaconda ** (an open source distribution for scientific calculations) can create a different Python version of the environment. However, it seems that it is easy to operate visually, so in this article I will try creating a virtual environment with Anaconda.
[Local PC environment-OS] ・ Windows 10 Pro
[Soft package] ・ Anaconda3-2020.07-Windows-x86_64
** First, download the installer that suits your PC from the following site. ** ** https://www.anaconda.com/products/individual
** Run the downloaded [.exe] file ** After starting, the following flow.
・ Setup screen ⇒ Click "NEXT" ・ License agreement ⇒ Click "I Agree" -Select installation type ⇒ Click "NEXT" * Default "Just Me" is OK ・ Installation location ⇒ Decide appropriately and click "NEXT" * Default OK -Installation option ⇒ Click "NEXT" without checking anything
** Launch Anaconda ** Click [Anaconda Navigator] to start it.
Open [Environments] on the left menu and click "Create". A pop-up screen will appear. After deciding the name and package of the virtual environment, click "Create" to create the environment.
By default, only one version of Python and R was included, but it is possible to create different versions of the environment. You can create an environment with another version of Python installed by starting [Anaconda Prompt] and executing the following command.
python
conda create -n [Environment name] python=【version】
#Actual command example
conda create -n test_py36 python3.6
When I check it from Navigator, an environment with Python 3.6 is created.
It's certainly easy to create a virtual environment, and creating different versions of the environment doesn't seem to be a problem, so I'll try using Anaconda for a while. If you have any inconvenience while using it, I will leave a note again. ..
Recommended Posts