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?

1 comments

@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
dependencies:
  - python
  - pytorch

and then run this:

conda env update
activate testenv123

Related Questions

Sponsored Content

25 Answered Questions

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

11 Answered Questions

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

15 Answered Questions

[SOLVED] Conda environments not showing up in Jupyter Notebook

0 Answered Questions

conda environment in google colab [google-colaboratory]

0 Answered Questions

0 Answered Questions

2 Answered Questions

[SOLVED] Link old envs to conda

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

4 Answered Questions

[SOLVED] Conda virtual environment not changing under Windows

1 Answered Questions

[SOLVED] Understanding virtual environment behavior

Sponsored Content