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

20.0.2 Regression: module missing 'pip._internal.download' #7645

Closed
afabiani opened this issue Jan 24, 2020 · 3 comments
Closed

20.0.2 Regression: module missing 'pip._internal.download' #7645

afabiani opened this issue Jan 24, 2020 · 3 comments
Labels
auto-locked Outdated issues that have been locked by automation C: public api Public API stuff resolution: invalid Invalid issue/PR

Comments

@afabiani
Copy link

Environment
Python 3

  • pip version: 20.0.2
  • Python version: 3.6+
  • OS: Ubuntu

Description
There's a regression

ModuleNotFoundError: No module named 'pip._internal.download'

Expected behavior

How to Reproduce

from pip._internal.download import PipSession

Output

ModuleNotFoundError: No module named 'pip._internal.download'

@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Jan 24, 2020
@presich
Copy link

presich commented Jan 24, 2020

I have regression on Python 3.4, Centos 6.10, but looks similar:
....
from pip._internal.commands.install import InstallCommand
....
RuntimeError: Python 3.5 or later is required

@pfmoore
Copy link
Member

pfmoore commented Jan 24, 2020

Use of the internal pip API is not supported. See here. We are routinely refactoring pip's internals, for efficiency and maintainability, and to support new features. So any release could break code that imports from pip - we make no guarantees of stability.

See the linked section of the documentation for more information, and suggestions on how to use pip from within your code.

@pfmoore pfmoore added C: public api Public API stuff resolution: invalid Invalid issue/PR and removed S: needs triage Issues/PRs that need to be triaged labels Jan 24, 2020
@afabiani
Copy link
Author

I see, thanks.
I have found a quick workaround for the moment. I'll look for a better solution in the future.

inst_req = parse_requirements('requirements.txt', session='hack')

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: public api Public API stuff resolution: invalid Invalid issue/PR
Projects
None yet
Development

No branches or pull requests

3 participants