Skip to content

Can't install with pip on a downloaded repo #5

@DavidGriffith

Description

@DavidGriffith

I'm on Debian 12 (bookworm) which installs Python 3.11, so I can't yet do

pip install py_slvs

So I should be able to to clone this repo and then do either of the following, right?

python setup.py install

or

pip install .

That didn't work.

$ pip -V
pip 23.0 from /usr/lib/python3/dist-packages/pip (python 3.11)
$ pip install .
Defaulting to user installation because normal site-packages is not writeable
Processing /home/dave/proj/local-admin/python/slvs_py
  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]
      skipping skbuild (no CMakeLists.txt found)
      running egg_info
      creating /tmp/pip-pip-egg-info-i3olrbww/py_slvs.egg-info
      writing /tmp/pip-pip-egg-info-i3olrbww/py_slvs.egg-info/PKG-INFO
      writing dependency_links to /tmp/pip-pip-egg-info-i3olrbww/py_slvs.egg-info/dependency_links.txt
      writing top-level names to /tmp/pip-pip-egg-info-i3olrbww/py_slvs.egg-info/top_level.txt
      writing manifest file '/tmp/pip-pip-egg-info-i3olrbww/py_slvs.egg-info/SOURCES.txt'
      error: package directory 'py_slvs' does not exist
      [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.

I also tried this on a Debian 11 (bullseye) machine which uses Python 3.9.

$ pip -V
pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)

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