Create an Anaconda virtual environment in your project folder

Create an Anaconda virtual environment in your project folder

conda_env_in_folder.JPG

Create a virtual environment as a ʻenvfolder inproject_folder. To make it easy to reproduce the sharing destination just by passing project_folder`.

1. Go inside project_folder (in Anaconda Prompt)

cd project_folder

2. Create a virtual environment

conda create --prefix ./env <Write the library you want to use here>

For example, if you want to create an environment with numpy, matplotlib installed

conda create --prefix ./env numpy matplotlib

When executed, a ʻenvfolder will be created inproject_folder. There is a virtual environment in this ʻenv folder.

The advantage is that if you share the entire project_folder, you can enable the same environment at the sharing destination.

3. Enable the virtual environment

conda env list

Check the environment list created in

conda activate <Path to the virtual environment you want to enable>

For example, if the confirmation result of the list is as follows

# conda environments:
#
                         C:\codes\Python\conda_tutorials\project_folder\env <-Created environment

To enable the environment

conda activate C:\codes\Python\conda_tutorials\project_folder\env

Recommended Posts

Create an Anaconda virtual environment in your project folder
Creating a virtual environment in an Anaconda environment
Build an Anaconda virtual environment
[Python] Create a virtual environment with Anaconda
Create a virtual environment with conda in Python
Error running Jupyter Notebook in Anaconda virtual environment
virtual environment in python
Create a Django project and application in a Python virtual environment and start the server
Create a virtual environment with Anaconda installed via Pyenv
Command line collection for using virtual environment in Anaconda
Use Anaconda in pyenv environment
[Anaconda] Activate the virtual environment
Register your Django application in your project
Install scrapy in python anaconda environment
Create an AWS Cloud9 development environment on your Amazon EC2 instance
Create a virtual environment with Python!
Various Anaconda settings in Windows 10 environment
install tensorflow in anaconda + python3.5 environment
Create Python project documentation in Sphinx
Created an environment for Anaconda & Jupyter
Prepare a Python virtual environment for your project with venv with VS Code
Unable to import packages installed in virtual environment with Anaconda on Windows 10
Install Django in a pipenv virtual environment
[Python] Building an environment with Anaconda [Mac]
Illustrate class dependencies in an Xcode project
Use tensorflow in an environment without root
[LLDB] Create your own command in Python
[5 steps] Apply anaconda virtual environment to VScode
How to create an NVIDIA Docker environment
Create a python environment on your Mac
Let's create a virtual environment for Python
I created an Anaconda environment using Docker!
Create a virtual environment with Python_Mac version
Create an OpenCV3 + python3 environment on OSX
Introduction to docker Create ubuntu environment in ubuntu
I started Node.js in a virtual environment
Install the package in an offline environment
Creating an environment for OSS-DB Silver # 1_Create a Linux environment (CentOS7 virtual environment) with VirtualBox/Vagrant
Call anaconda virtual environment from ubuntu terminal memorandum
Create a Vim + Python test environment in 1 minute
For beginners to build an Anaconda environment. (Memo)
How to create a Python virtual environment (venv)
Ubuntu18.04.05 Creating a python virtual environment in LTS
Building an environment that uses Python in Eclipse
Create an executable file in a scripting language
Building an Anaconda environment for Python with pyenv
Start Django in a virtual environment with Pipenv
Create an environment of 64bit Windows + python 2.7 + MeCab 0.996
Install the python package in an offline environment
[Memo] Build a virtual environment with Pyenv + anaconda
Use Python in your environment from Win Automation
Create an image with characters in python (Japanese)
[Python] Create an asynchronous task execution environment + monitoring environment
[Venv] Create a python virtual environment on Ubuntu
[Node-RED] Execute Python on Anaconda virtual environment from Node-RED [Anaconda] [Python]
Work in a virtual environment with Python virtualenv.
Flow of creating a virtual environment with Anaconda
Use jupyter-lab installed in python virtual environment (venv)
Use Python in Anaconda environment with VS Code
From Python environment construction to virtual environment construction with anaconda
[Docker] Create a jupyterLab (python) environment in 3 minutes!