Skip to content

Error on pip install -r requirements.txt #187

Description

@Quakumei

Spec

Python version: 3.10.12

Steps to reproduce

  1. Create fresh venv
python -m venv .venv
source .venv/bin/activate
  1. Attempt installing requirements
(.venv) quakumei@liuliuliu:~/Desktop/Syncthing/StudiesAndBooks/sort$ pip install -r requirements.txt 
Collecting filterpy==1.4.5
  Downloading filterpy-1.4.5.zip (177 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.0/178.0 KB 788.3 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting scikit-image==0.17.2
  Downloading scikit-image-0.17.2.tar.gz (29.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 29.8/29.8 MB 272.4 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-qyf03opt/scikit-image_3093bbefcf6a43179405c676a4772f43/setup.py", line 234, in <module>
          'build_ext': openmp_build_ext(),
        File "/tmp/pip-install-qyf03opt/scikit-image_3093bbefcf6a43179405c676a4772f43/setup.py", line 58, in openmp_build_ext
          from numpy.distutils.command.build_ext import build_ext
      ModuleNotFoundError: No module named 'numpy'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Solution

tldr update versions

Pull request which solves the problem: #186

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions