复现的代码https://github.com/ucbdrive/few-shot-object-detection?tab=readme-ov-file
一
输入
conda install pytorch==1.4.0 torchvision==0.5.0 cudatoolkit=9.2 -c pytorch -c https://anaconda.org
报错
An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.
Example: conda --no-plugins install <package>
Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.
Example: CONDA_NO_PLUGINS=true conda install <package>
网上有解答说是梯子的原因但是对我来说没用。实在改不了我放弃了这个问题去下一个步骤
二
输入
python3 -m pip install detectron2==0.3 -f \
https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.6/index.html
报错
ERROR: Could not find a version that satisfies the requirement detectron2==0.3 (from versions: none)
ERROR: No matching distribution found for detectron2==0.3
我已经遇到过很多次这个报错了,哪怕我点开detectron2的网页,在网页里找相应版本的下载链接,也还是遇到这种报错。后来我直接下载whl文件再运行,又报错,报错如下
上网搜到的解释是可能是版本问题,我检查了python的版本,发现是下图这么多
尝试了很多办法不能把python版本降低到3.8