pip install torchray 安装报错 解决

pip install torchray 报错

经过尝试可能是漏了安装pycocotools这个库了

 

整体步骤

conda create -p 路径/环境名 python=3.6

conda activate 路径/环境名

pip install torch==1.7.1

pip install torchvision==0.8.2

pip install matplotlib(Successfully installed cycler-0.10.0 kiwisolver-1.3.1 matplotlib-3.3.4 pillow-8.2.0 pyparsing-2.4.7 python-dateutil-2.8.1 six-1.15.0)

pip install pycocotools(Successfully installed pycocotools-2.0.0)

pip install torchray(Successfully installed chardet-4.0.0 idna-2.10 importlib-resources-5.1.2 packaging-20.9 pymongo-3.11.3 requests-2.25.1 torchray-1.0.0.2 urllib3-1.26.4 zipp-3.4.1)

成功!

 

你可能感兴趣的:(pytorch)