Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Sep 13, 2016

After awhile I got tired of not being able to update newer modules because they weren't in my distro's repo or I had to update them one-by-one with pip.

Of course you can alter this to make it more safe in anyway

@ghost
Copy link
Author

ghost commented Sep 13, 2016

Also as I have tested this works with python3 also

@pfmoore
Copy link
Member

pfmoore commented Sep 13, 2016

This looks like a reasonable little utility, but it's not really something we'd add to pip directly. If nothing else, we'd want a cross-platform solution (and even then, if it were to be something pip supported, we'd add it as a pip subcommand - there are a number of ongoing discussions around this.

import os

update_list = []
p = os.popen('sudo -H pip freeze --local',"r")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a personal script, this is fine but you should probably use subprocess.Popen for production scripts.

@pradyunsg
Copy link
Member

This looks like a reasonable little utility, but it's not really something we'd add to pip directly.

@pfmoore Can we close this PR then?

@xavfernandez
Copy link
Member

Agreed, this won't be included in pip.
Thanks for the PR though.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants