电脑小白下载东西时候遇到的困难.1

以下为在 vscode 里面的终端下载 numpy 时候遇到的麻烦
pip install numpy https: //pypi. tuna. tsinghua .edu .cn/simple
然后会


看了网上的一些帖子,感觉很难找到有用的帮助
最后淘金掏出来了应该把代码修改为
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn numpy
这是由于因为没有添加信任,所以出了毛病。
并不是镜像源本身的问题,也不是 Python 解释器的问题,不要像题主一样傻,把 python 解释器换了一个又一个,最近觉得删的不够彻底,然后重装系统。大家一定要相信科学

换清华源是吧?稍等,我看看

临时换源用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn 模块名 应该是可行的啊,奇怪呢

另外,建议用 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 永久换源,省事儿

等等,你这第一行该不会是代码 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy 吧?那就不奇怪了呢

好好好
——發自我的手機

推荐看看这篇 提问的智慧

受教了