Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to install requirements anymore #312

Open
lgmventura opened this issue May 14, 2023 · 3 comments
Open

Not able to install requirements anymore #312

lgmventura opened this issue May 14, 2023 · 3 comments

Comments

@lgmventura
Copy link

After cloning the repository and running pip3 install -r requirements.txt, I get the following errors:

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement torch==1.7.1 (from versions: 1.13.0, 1.13.1, 2.0.0, 2.0.1)
ERROR: No matching distribution found for torch==1.7.1

Trying to install the requirements with conda install instead of pip, in a new conda environment, I get this when trying to install pytorch, after running conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0 -c pytorch:

Package libgcc-ng conflicts for:
python=3.11 -> bzip2[version='>=1.0.8,<2.0a0'] -> libgcc-ng[version='>=10.3.0|>=7.3.0|>=7.5.0|>=9.3.0|>=9.4.0']
python=3.11 -> libgcc-ng[version='>=11.2.0|>=12']The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__cuda==12.1=0
  - feature:/linux-64::__glibc==2.35=0
  - feature:|@/linux-64::__glibc==2.35=0
  - cudatoolkit=11.0 -> __glibc[version='>=2.17,<3.0.a0']
  - cudatoolkit=11.0 -> libgcc-ng[version='>=10.3.0'] -> __glibc[version='>=2.17']
  - python=3.11 -> libgcc-ng[version='>=11.2.0'] -> __glibc[version='>=2.17']
  - pytorch==1.7.1 -> cudatoolkit[version='>=11.0,<11.1'] -> __glibc[version='>=2.17|>=2.17,<3.0.a0']
  - torchvision==0.8.2 -> __glibc[version='>=2.17']
  - torchvision==0.8.2 -> cudatoolkit[version='>=11.0,<11.1'] -> __glibc[version='>=2.17,<3.0.a0']
  - torchvision==0.8.2 -> pytorch=[build=cuda*] -> __cuda

Your installed version is: 2.35

System: Ubuntu 22.04 with anaconda installed

@hzwer
Copy link
Owner

hzwer commented May 15, 2023

Your python version is so new that there are only 1.13.0, 1.13.1, 2.0.0, 2.0.1 torch version
I don't know how to write a requirement that is compatible with the ever-updating python
Maybe you can directly pip install pytorch torchvision and then check for compatibility issues
Maybe there will be more warnings

@ghost
Copy link

ghost commented Aug 14, 2023

use
!pip3 install numpy>=1.16
!pip3 install tqdm>=4.35.0
!pip3 install sk-video>=1.1.10
!pip3 install torch>=1.6.0
!pip3 install opencv-python>=4.1.2
!pip3 install moviepy>=1.0.3
!pip3 install torchvision>=0.7.0

@vstyler96
Copy link

Python Should be between >= 3.7 and < 3.11. Otherwise these dependencies are not gonna work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants