Cat change pip source

the python is download from msstore

Brief description of your issue

can’t change pip source

Steps to reproduce

pip config set global.index-url Simple Index

Actual behavior


Expected behavior

Writing to C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64__qbz5n2kfra8p0\pip.ini
ERROR: Unable to save configuration. Please report this as a bug.
Traceback (most recent call last):
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip_internal\commands\”, line 267, in _save_configuration
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip_internal\”, line 213, in save
with open(fname, “w”) as f:
PermissionError: [Errno 13] Permission denied: ‘C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64__qbz5n2kfra8p0\pip.ini’
ERROR: Internal Error.

Since it’s giving a permissions error, my guess would be that you need to run your command to update the global config as an administrator and you didn’t do so.

The global config file is stored within C:\Program Files. You need to have admin rights in order to update it. This file is supposed to change the config for all users, so ordinary users should not be able to change it for everyone else.