You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use python3 as microsoft store version, I can't set pip source in my computer, and it show the following message:
ERROR: Unable to save configuration. Please report this as a bug.
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\commands\configuration.py", line 264, in _save_configuration
self.configuration.save()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\configuration.py", line 225, in save
with open(fname, "w") as f:
PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\\pip.ini'
ERROR: Internal Error.
so I report it.
And according to the error message, I believe that the config files should save to another place instead of the origin place.
I can reproduce but if I add the --user flag it works fine, e.g.
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple --user
This makes sense, the "pip.ini" in "Program Files" is for all users and would need admin privileges to edit, you should be writing you the user level pip configuration.
Also this isn't really a pip issue I don't think, this is a Windows permissions / Python Windows Store issue.
Description
When I use python3 as microsoft store version, I can't set pip source in my computer, and it show the following message:
so I report it.
And according to the error message, I believe that the config files should save to another place instead of the origin place.
Expected behavior
No response
pip version
pip 21.3.1
Python version
Python3.8, Python3.10
OS
Windows10 21H2
How to Reproduce
Just use python3 as microsoft store's version and run python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: