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

pip install doesn't work #46

Closed
amrzv opened this issue Feb 6, 2025 · 2 comments
Closed

pip install doesn't work #46

amrzv opened this issue Feb 6, 2025 · 2 comments

Comments

@amrzv
Copy link

amrzv commented Feb 6, 2025

Hello.
When running EAT_demo.ipynb notebook in colab the !pip install -r requirements.txt doesn't work

Collecting git+https://github.com/yuangan/CLIP.git (from -r requirements.txt (line 18))
  Cloning https://github.com/yuangan/CLIP.git to /tmp/pip-req-build-ds1pp25c
  Running command git clone --filter=blob:none --quiet https://github.com/yuangan/CLIP.git /tmp/pip-req-build-ds1pp25c
  Resolved https://github.com/yuangan/CLIP.git to commit 659e37b846f0ff6e9e3a811aa1f7d79de18eaf66
  Preparing metadata (setup.py) ... done
Requirement already satisfied: dlib==19.24.2 in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 1)) (19.24.2)
Collecting imageio==2.9.0 (from -r requirements.txt (line 2))
  Using cached imageio-2.9.0-py3-none-any.whl.metadata (2.6 kB)
Collecting iou==0.1.0 (from -r requirements.txt (line 3))
  Using cached iou-0.1.0.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
Collecting munch==4.0.0 (from -r requirements.txt (line 4))
  Using cached munch-4.0.0-py2.py3-none-any.whl.metadata (5.9 kB)
Collecting numpy==1.23.5 (from -r requirements.txt (line 5))
  Using cached numpy-1.23.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.3 kB)
Collecting opencv_contrib_python==4.7.0.72 (from -r requirements.txt (line 6))
  Using cached opencv_contrib_python-4.7.0.72-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
Collecting opencv_python==4.7.0.72 (from -r requirements.txt (line 7))
  Using cached opencv_python-4.7.0.72-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
Collecting opencv_python_headless==4.7.0.68 (from -r requirements.txt (line 8))
  Using cached opencv_python_headless-4.7.0.68-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB)
Collecting Pillow==10.0.0 (from -r requirements.txt (line 9))
  Using cached Pillow-10.0.0-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (9.5 kB)
Collecting PyYAML==6.0.1 (from -r requirements.txt (line 10))
  Using cached PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
Collecting scipy==1.9.1 (from -r requirements.txt (line 11))
  Using cached scipy-1.9.1.tar.gz (42.0 MB)
  Installing build dependencies ... done
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
@yuangan
Copy link
Owner

yuangan commented Feb 8, 2025

Thank you for your interest.

The reason is that the newest version of Python in the default Colab does not support some package. I'm working on solving it.

@yuangan
Copy link
Owner

yuangan commented Feb 8, 2025

I make a conda env with python=3.9. It works like a charm now.

@yuangan yuangan closed this as completed Feb 8, 2025
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

2 participants