我试图为anaconda安装创建一个新环境,该环境要与原始安装有所不同。我发现这不起作用:
$ 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
这是怎么了
我要完成的工作是创建原始环境的副本,添加一些用于测试的模块,然后放弃测试环境(pandas018numpy111)。
啊,我找到了答案。
conda create
实际上,我需要的是命令
$ conda create -n pandas018numpy111 --clone root
然后,我有扔掉的环境来进行修改,等等,后来就折腾了。要进行切换,我将只使用:
$ source activate pandas018numpy111
并退出这种环境,
$ source deactivate
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句