首先创造了虚拟环境mmrotate
conda create --name mmrotate python==3.8
接着输入conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch 安装pytorch等
在这一步出现报错
Solving environment: \ warning libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed
LibMambaUnsatisfiableError: Encountered problems while solving:
- nothing provides cudatoolkit >=11.5,<11.6 needed by torchvision-0.12.0-py310_cu115
- nothing provides cudatoolkit >=11.5,<11.6 needed by torchaudio-0.11.0-py310_cu115
- nothing provides cudatoolkit >=11.5,<11.6 needed by pytorch-1.11.0-py3.10_cuda11.5_cudnn8_0
Could not solve for environment specs
The following packages are incompatible
├─ pin-1 is installable and it requires
│ └─ python 3.11.* , which can be installed;
├─ pytorch 1.11.0 is not installable because there are no viable options
│ ├─ pytorch 1.11.0 would require
│ │ └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
│ ├─ pytorch 1.11.0 would require
│ │ └─ cudatoolkit >=11.5,<11.6 , which does not exist (perhaps a missing channel);
│ ├─ pytorch 1.11.0 would require
│ │ └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
│ ├─ pytorch 1.11.0 would require
│ │ └─ cudatoolkit >=11.1,<11.2 , which does not exist (perhaps a missing channel);
│ ├─ pytorch 1.11.0 would require
│ │ └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
│ └─ pytorch 1.11.0 would require
│ └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported;
├─ torchaudio 0.11.0 is not installable because there are no viable options
│ ├─ torchaudio 0.11.0 would require
│ │ └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
│ ├─ torchaudio 0.11.0 would require
│ │ └─ cudatoolkit >=11.5,<11.6 , which does not exist (perhaps a missing channel);
│ ├─ torchaudio 0.11.0 would require
│ │ └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
│ ├─ torchaudio 0.11.0 would require
│ │ └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
│ └─ torchaudio 0.11.0 would require
│ └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported;
└─ torchvision 0.12.0 is not installable because there are no viable options
├─ torchvision 0.12.0 would require
│ └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
├─ torchvision 0.12.0 would require
│ └─ cudatoolkit >=11.5,<11.6 , which does not exist (perhaps a missing channel);
├─ torchvision 0.12.0 would require
│ └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
├─ torchvision 0.12.0 would require
│ └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
└─ torchvision 0.12.0 would require
└─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported.
Pins seem to be involved in the conflict. Currently pinned specs:
- python 3.11.* (labeled as 'pin-1')
显示Pins seem to be involved in the conflict. Currently pinned specs:
- python 3.11.* (labeled as 'pin-1')
是什么意思,我虚拟环境安装的是python3.8呀?
请问这个问题怎么解决?