# Cat change pip source

**URL:** <https://discuss.python.org/t/cat-change-pip-source/29150>\
**Category:** Python Help\
**Tags:** release, help\
**Created:** [July 7, 2023, 5:11am UTC](https://discuss.python.org/t/cat-change-pip-source/29150 "2023-07-07T05:11:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyj0309](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@lyj0309](https://discuss.python.org/u/lyj0309)\
**Post date:** [July 7, 2023, 5:11am UTC](https://discuss.python.org/t/cat-change-pip-source/29150/1 "2023-07-07T05:11:21Z")

</div>

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 [https://mirrors.bfsu.edu.cn/pypi/web/simple](https://mirrors.bfsu.edu.cn/pypi/web/simple)

### Actual behavior

success

### 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\configuration.py”, line 267, in \_save\_configuration  
self.configuration.save()  
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11\_3.11.1264.0\_x64\_\_qbz5n2kfra8p0\Lib\site-packages\pip\_internal\configuration.py”, 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.

---

<div class="post-metadata">

**Author:** ![Zeturic](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@Zeturic](https://discuss.python.org/u/Zeturic)\
**Post date:** [July 7, 2023, 6:12pm UTC](https://discuss.python.org/t/cat-change-pip-source/29150/2 "2023-07-07T18:12:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kknechtel](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kknechtel](https://discuss.python.org/u/kknechtel)\
**Post date:** [July 7, 2023, 6:15pm UTC](https://discuss.python.org/t/cat-change-pip-source/29150/3 "2023-07-07T18:15:07Z")

</div>

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.
