pip设置国内清华源的问题

pip设置国内清华源的问题

narakuyang
2023-10-05 / 0 评论 / 42 阅读 / 正在检测是否收录...

解决方式:python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple --user

ERROR: Unable to save configuration. Please report this as a bug.
Traceback (most recent call last):
File "C:\Users\x1913\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pip\_internal\configuration.py", line 215, in save

with open(fname, "w") as f:

PermissionError: [Errno 13] Permission denied: 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\pip.ini'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\x1913\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pip\_internal\commands\configuration.py", line 267, in _save_configuration

self.configuration.save()

File "C:\Users\x1913\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pip\_internal\configuration.py", line 218, in save

raise ConfigurationError(

pip._internal.exceptions.ConfigurationError: An error occurred while writing to the configuration file C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\pip.ini: [Errno 13] Permission denied: 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\pip.ini'
ERROR: Internal Error.

0

评论

博主关闭了所有页面的评论