Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

conda env create failed?

I tried to create a new environment for anaconda installation that I want to tweak apart from the original install. I found this not working:

$ conda env create --name pandas018numpy111 pandas018test1
Using Anaconda Cloud api site https://api.anaconda.org
Error: Invalid name, try the format: user/package
pandas018test1 does not exist or can't be accessed
environment.yml file not found
There is no requirements.txt

What is wrong here?

What I wanted to accomplish was to create the copy of the original environment, add some modules for testing around, then toss away the test environment (pandas018numpy111).

like image 838
Wirawan Purwanto Avatar asked Jun 30 '16 17:06

Wirawan Purwanto


People also ask

Does Anaconda install PIP?

Both pip and conda are included in Anaconda and Miniconda, so you do not need to install them separately. Conda environments replace virtualenv, so there is no need to activate a virtualenv before using pip.

What is the current conda version?

Conda has been updated to v22. 9.0. Anaconda Navigator has been updated to v2. 3.1.


1 Answers

Ah, I found the answer.

What I need is the conda create command, actually,

$ conda create -n pandas018numpy111 --clone root

Then I have the throw-away environment to modify, etc and later just toss. To switch then I will just use:

$ source activate pandas018numpy111

and to exit from this environment,

$ source deactivate
like image 70
Wirawan Purwanto Avatar answered Sep 27 '22 19:09

Wirawan Purwanto