Pycocotools不是安装 基本环境python 3.7.1 一个虚拟环境python 3.6.2

我在anaconda(python 3.7)上使用pip安装了pycocotools,效果很好。 当我尝试在虚拟环境(使用python 3.6)上安装pycocotools时,此方法无效。

我正在将anaconda与:

基本环境python 3.7.1

一个虚拟环境python 3.6.2

我尝试使用:p在基础上安装pycocotools

pip安装pycocotools

一切都像魅力一样

尝试在其他虚拟环境上安装pycocotools时不起作用

pip install pycocotools 
#Works well at base

conda activate tensorflow
#The virtual environement is called tensorflow
pip install pycocotools

产生几个错误:

错误:pycocotools的构建轮失败

cl:命令行错误D8021:无效的数字参数'/ Wno-cpp'

错误:命令'C:\ Program Files(x86)\ microsoft Visual Studio \ Shared \ 14.0 \ VC \ bin \ cl.exe'失败,退出状态为2

zhizihuang 回答:Pycocotools不是安装 基本环境python 3.7.1 一个虚拟环境python 3.6.2

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3153551.html

大家都在问