By ilbi

2018-06-20 14:41:31 8 Comments

When creating conda virtual environment with YAML file for the first time, I unknowingly ran:

conda env update -f environment.yml
call activate process_name

which successfully created a venv in: C:\Users\userName\AppData\Local\Continuum\anaconda3\envs.

Should I have ran the following instead?

conda env create -f environment.yml
call activate process_name

Does conda env update create a new venv if no existing venv is found in the anaconda envs directory?

How stable is conda env update in defaulting to creating a new venv if no existing venv is found?


@sin2akshay 2019-01-13 09:16:47

Both should work to create the new venv if such an environment doesn't exists. You can easily try this with a sample environment.yml

Create the following environment.yml file in a directory of your choice:

name: testenv123
  - python
  - pytorch

and then run this:

conda env update
activate testenv123

Related Questions

Sponsored Content

17 Answered Questions

[SOLVED] Conda environments not showing up in Jupyter Notebook

15 Answered Questions

[SOLVED] Using Pip to install packages to Anaconda Environment

12 Answered Questions

[SOLVED] What is the difference between pip and conda?

25 Answered Questions

[SOLVED] How can I safely create a nested directory?

2 Answered Questions

[SOLVED] Link old envs to conda

  • 2017-12-19 10:55:37
  • root-11
  • 706 View
  • 0 Score
  • 2 Answer
  • Tags:   anaconda conda

Sponsored Content