Steve Dower added the comment:
Actually, I suspect you're not importing site on startup at all (which is great
for performance), but that means that site.main() is not being run. I'll post
more details on the pip bug.
--
___
Python tracker
Steve Dower added the comment:
Yes, fixing pip in this case is the right approach.
Since you're going to be including a copy of pip with your application, you can
also just patch that yourself to get going while the pip team decides how to go
from here. Or you could add a sitecustomize.py
Brecht Machiels added the comment:
I see. In that case I think pip should be able to handle the case when
site.USER_SITE is None. I have created a ticket here:
https://github.com/pypa/pip/issues/4437.
I am using the embeddable Python what's it intended for, to make a
self-contained
Steve Dower added the comment:
This is by design - the embeddable Python is meant to exclude anything relating
to the current user by default.
If you're looking for a lightweight Python install that you can use for things
like building or managing packages, you may be interested in the Nuget
New submission from Brecht Machiels:
Previous versions of the embeddable Python:
Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 16:02:32) [MSC v.1900 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import site
>>>