MicrosoftDocs / windows-dev-docs

Conceptual and overview content for developing Windows apps
Creative Commons Attribution 4.0 International
667 stars 1.18k forks source link

Dev Drive Python PIP doesn't work with MSStore python #5028

Open ivberg opened 2 weeks ago

ivberg commented 2 weeks ago

Type of issue

Missing information

Feedback

Install / use Python from MSStore. Use the config in the doc and it won't work.

E.g. Pip cache (Python): Create a pip cache directory in your Dev Drive, e.g. D:\packages\pip, then set a global environment variable PIP_CACHE_DIR to that path, e.g. setx /M PIP_CACHE_DIR D:\packages\pip. If you have already restored pip packages and Wheels on your machine, move the contents of %LocalAppData%\pip\Cache to this directory. Learn more in the pip docs: pip caching and see StackOverflow to Change directory of pip cache on Linux?.

Instead it seems another env variable might be needed (confirmed it works) set PYTHONUSERBASE=S:\packages\python

Page URL

https://learn.microsoft.com/en-us/windows/dev-drive/

Content source URL

https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/hub/dev-drive/index.md

Author

@mattwojo

Document Id

bfda7965-bc34-ab88-fdc9-efef4a5d8a9e