Creating a virtual environment in an Anaconda environment

Introduction

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.

Execution environment

[Local PC environment-OS] ・ Windows 10 Pro

[Soft package] ・ Anaconda3-2020.07-Windows-x86_64

What to do this time

    1. Installation of Anaconda
  1. Creating a virtual environment

1. 1. Installation of Anaconda

** 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. Qiita-no016_img02.jpg Qiita-no016_img03.jpg

2. Creating a virtual environment

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.

Qiita-no016_img04.jpg

Supplement

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. Qiita-no016_img05.jpg

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. Qiita-no016_img06.jpg

Summary

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

Creating a virtual environment in an Anaconda environment
Ubuntu18.04.05 Creating a python virtual environment in LTS
Build an Anaconda virtual environment
Flow of creating a virtual environment with Anaconda
Create an Anaconda virtual environment in your project folder
Notes on creating a virtual environment with Anaconda Navigator
Install Django in a pipenv virtual environment
Creating a python virtual environment on Windows
I started Node.js in a virtual environment
virtual environment in python
Start Django in a virtual environment with Pipenv
Create a virtual environment with conda in Python
[Memo] Build a virtual environment with Pyenv + anaconda
Error running Jupyter Notebook in Anaconda virtual environment
How about creating a virtual environment with Anaconda and doing pip install?
Use Anaconda in pyenv environment
Create a virtual environment with Anaconda installed via Pyenv
Collaborate in a remote environment
Building a Python virtual environment
[Anaconda] Activate the virtual environment
Command line collection for using virtual environment in Anaconda
Building a Python virtual environment
Seaborn, matplotlib garbled characters resolved in Windows10, Anaconda virtual environment
[Django3] Display a web page in Django3 + WSL + Python virtual environment
A note on how to load a virtual environment in PyCharm
How to develop in a virtual environment of Python [Memo]
Studying Python Part.1 Creating an environment
Install scrapy in python anaconda environment
Create a virtual environment with Python!
Various Anaconda settings in Windows 10 environment
Building a virtual environment with Python 3
Created an environment for Anaconda & Jupyter
When creating a matrix in a list
How about Anaconda for building a machine learning environment in Python?
From installing Ansible to building a Python environment in Vagrant's virtual environment
What to do if pip --user returns an error in a virtual environment created with pyenv
[Python] Building an environment with Anaconda [Mac]
Creating an Ubuntu 18.04 + MAAS2.4 environment starting from 0
Use tensorflow in an environment without root
[5 steps] Apply anaconda virtual environment to VScode
Note when creating an environment with python
Building a virtual environment using homebrew + pyenv-virtualenv
Let's create a virtual environment for Python
I created an Anaconda environment using Docker!
[Mac] Building a virtual environment for Python
Create a virtual environment with Python_Mac version
Build a python virtual environment with pyenv
Install CaboCha in a non-Anaconda environment (Win)
Creating a development environment for machine learning
Install the package in an offline environment
Add a Python virtual environment to VSCode
Use WebDAV in a Portable Docker environment
Building a virtual environment for Mayavi dedicated to Python 3.6, Anaconda, Spyder users
Unable to import packages installed in virtual environment with Anaconda on Windows 10
Call anaconda virtual environment from ubuntu terminal memorandum
Run PIFuHD in Windows + Anaconda + Git Bash environment
Build a LAMP environment in a very short time
Create a Vim + Python test environment in 1 minute
What I was addicted to when creating a web application in a windows environment
How to share a virtual environment [About requirements.txt]
For beginners to build an Anaconda environment. (Memo)