Python环境常见问题

常见问题

更换镜像源为清华源:

清华大学PyPI镜像:https://mirrors.tuna.tsinghua.edu.cn/help/pypi/

临时使用

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 包的名称

永久使用:

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
posted @ 2024-08-23 21:18  海浪博客  阅读(18)  评论(0)    收藏  举报