1、输入指令
conda env create -f environment.yml
2、存在问题
①问题一
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you.
解决办法:在yml配置文件使用加上一行pip(先安装pip依赖)
②问题二
由于创建的虚拟环境已经存在,因此需要将name修改为无冲突的名称。
③问题三
这个问题是说有些包找不到,可以根据自己的情况查找资料解决。
其中一种方法是将这些包从配置文件中删去,配置完成后单独使用pipi指令安装。
发布者:admin,转转请注明出处:http://www.yc00.com/web/1755499079a5235444.html
评论列表(0条)