few shot detection复现时遇到的问题

复现的代码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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值