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

Can't install pipreqs #463

Open
poverty149 opened this issue Oct 2, 2024 · 2 comments
Open

Can't install pipreqs #463

poverty149 opened this issue Oct 2, 2024 · 2 comments

Comments

@poverty149
Copy link

While attempting to install pipreqs via:

pip install pipreqs

Getting the following error:

Collecting pipreqs
  Obtaining dependency information for pipreqs from https://files.pythonhosted.org/packages/36/38/cc1343c3a63655e18328e51e00c6e6851be648f1b8babffc5131f1b9f226/pipreqs-0.5.0-py3-none-any.whl.metadata
  Using cached pipreqs-0.5.0-py3-none-any.whl.metadata (7.9 kB)
Collecting docopt==0.6.2 (from pipreqs)
  Using cached docopt-0.6.2.tar.gz (25 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
      [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.

Python 3.11.5

@DataEnggNerd
Copy link

The issue is not reproducible with Python3.11.5.
For better clarity, provide information about your OS as well.

Meanwhile, Can you check with updating your setuptools with pip install -U setuptools?

@hakkikonu
Copy link

The error you're encountering during the installation of pipreqs is due to the absence of setuptools in your build environment. setuptools is a crucial package for building and installing Python packages. To resolve this issue, please follow these steps:

  1. Upgrade setuptools:
    Ensure that setuptools is installed and up to date by running:

    pip install --upgrade setuptools

    This command will install the latest version of setuptools, which is necessary for building packages that rely on setup.py.

  2. Install pipreqs after upgrading:
    Once setuptools is updated, proceed to install pipreqs:

    pip install pipreqs

    This should complete without errors.

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