admin管理员组文章数量:1130349
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指令安装。
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指令安装。
本文标签: 环境Environmentyml
版权声明:本文标题:使用environment.yml配置环境的小问题 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1755499079a2762343.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论