解决python:ModuleNotFoundError:No module named "numpy" 等类似缺包问题(pyhton 安装pip 以及 numpy)

一、在安装了基本python环境后,浏览器打开下列网址,右键-另存为get-pip.py。保存到python安装目录,如:“C:\Python36”https://bootstrap.pypa.io/get-pip.py
二、双击执行本地的get-pip.py文件(或者打开cmd,执行python get-pip.py).安装完毕后,可使用pip命令安装相应的包。
三、假如我缺少numpy包的话,在cmd中python3执行:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy

猜你喜欢

转载自blog.csdn.net/qq_44116786/article/details/105151109
今日推荐