使用environment.yml配置环境的小问题

1、输入指令conda env create -f environment.yml2、存在问题①问题一Warning: you have pip-installed dependencies in your environment file

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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信