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

Setup.py fails to build #1094

Closed
kiddinn opened this issue Feb 4, 2020 · 3 comments
Closed

Setup.py fails to build #1094

kiddinn opened this issue Feb 4, 2020 · 3 comments
Assignees
Labels
Bug Deployment Issue related to deployment

Comments

@kiddinn
Copy link
Contributor

kiddinn commented Feb 4, 2020

Using:

$ pip --version
pip 20.0.2 from ....

I can no longer use setup.py to build the tool:

Traceback (most recent call last):
  File "setup.py", line 30, in <module>
    from pip._internal.download import PipSession
ModuleNotFoundError: No module named 'pip._internal.download'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 33, in <module>
    from pip.download import PipSession
ModuleNotFoundError: No module named 'pip.download'

Looking at the pypi documentation I see: https://pip.pypa.io/en/stable/user_guide/#using-pip-from-your-program

More specifically:

pip is a command line program. While it is implemented in Python, and so is available from your Python code via import pip, you must not use pip’s internal APIs in this way

The supported way of using it is:

subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'my_package'])
@joachimmetz
Copy link
Member

Related/Duplicate #1190

@joachimmetz joachimmetz added Deployment Issue related to deployment Issue health labels Jun 17, 2020
@jaegeral
Copy link
Collaborator

Is this still an issue?

@jaegeral
Copy link
Collaborator

jaegeral commented Jan 6, 2021

#1190 dealt already with it, closing this one out.

@jaegeral jaegeral closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Deployment Issue related to deployment
Projects
None yet
Development

No branches or pull requests

4 participants