-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
module 'pip' has no attribute 'main' #5493
Comments
There's no need for a deprecation period for something that was never documented or supported. Sorry you were hit by this unexpectedly, but we publicised the change for a long time (6 months or more) before the release. We did our best to let everyone know - sorry that you slipped through the cracks. As you say, Closing this as we're not going to reverse this decision. See #5080 for further discussion (this issue is essentially a duplicate of that one). |
The documentation still lists I know have found the other issue. I hadn't realised that was a general guide and that |
@mungojam I'm not sure what you're trying to say here. Do you feel that the documentation could be improved? If so how? You're always welcome to raise a PR with suggested improvements in the wording. |
Sorry, no. I had got the impression from lots of googling that I don't have the option to change my PATH at work, so I've just uninstalled my user version of pip and will stick with v9 for now. Nothing further needed |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Environment
Description
When trying to use pip from within Python scripts, I tended to use
pip.main
frequently (I also used it in the repl whenever I needed to install something). However, with the pip 10 release,pip.main
was removed with no deprecation period.I could understand removing the
main
function, but why was it removed without a deprecation period?Expected behavior
pip.main
should return a function which accepts the arguments in the waysubprocess.run
would expect.How to Reproduce
The text was updated successfully, but these errors were encountered: