c-yn / ConvIR

Revitalizing Convolutional Network for Image Restoration
MIT License
76 stars 5 forks source link

conda install packages conflicts #5

Closed DanielG1010 closed 2 months ago

DanielG1010 commented 2 months ago

Hi, thank you for your work. I am trying to create the environment to run some test with the model. I make an initial empty conda enviroment and then run: conda install pytorch=1.8.1 torchvision=0.9.1 -c pytorch

But get the following conflicts:

LibMambaUnsatisfiableError: Encountered problems while solving:
  - package torchvision-0.9.1-py36_cpu requires python >=3.6,<3.7.0a0, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ pin-1 is installable and it requires
│  └─ python 3.12.* , which can be installed;
└─ torchvision 0.9.1**  is not installable because there are no viable options
   ├─ torchvision 0.9.1 would require
   │  └─ python >=3.6,<3.7.0a0 , which conflicts with any installable versions previously reported;
   ├─ torchvision 0.9.1 would require
   │  └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ torchvision 0.9.1 would require
   │  └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
   ├─ torchvision 0.9.1 would require
   │  └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported;
   └─ torchvision 0.9.1 conflicts with any installable versions previously reported.

I also tried with micromamba, but got the same. Do you have any alternative instructions to create the environment? Maybe an environment.yml?

c-yn commented 2 months ago

Hi, thanks for your interest.

' - package torchvision-0.9.1-py36_cpu requires python >=3.6,<3.7.0a0, but none of the providers can be installed' it seems that you have installed Python with a higher version. py3.6 will work. You can also install a recent Pytorch version, like 2.0.