Donald Stufft added the comment:

pip doesn't really support being called as an API, there's been requests for it 
before but nobody has yet come forward to specify what parts in particular they 
need. The practical effect of this is that there's no backwards compatibility 
promises for anything you import from pip currently. I would suggest using a 
subprocess to communicate with pip unless you can define what operations you 
need so the pip developers can settle on a real public API for them.

As for your actual questions:

1. I'm pretty sure it requires restarting the process because pkg_resources has 
a cache and pip currently isn't designed in a way that it assumes you're going 
to freeze in anything but it's own process.

2. I think this depends on what version of of Python it's being used with and 
where the user installed it to. I think Steve Dower has switched Python 3.5's 
default install location to Program Files which does require it to be run as an 
administrator if you want to install into the site-packages instead of the user 
packages directory.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23551>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to