Pycharm安装numpy
File菜单,Settings
选择项⽬ Project,点击 Project Interpreter,点击右侧的 +
在上⽅的⽂本框中输⼊numpy,再在下⾯点击 install packages
状态栏有进度
可能报错:
pip._ptions.ReadTimeoutError: HTTPSConnectionPool(host='', port=443): Read timed out. Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'E:\xxx\LSTM_WATER\venv\'.
可能原因⽹速太慢
使⽤命令安装
特别注意:注意pip的版本
pip --default-timeout=1000 install -U 模块名numpy库需要安装吗
例如
pip --default-timeout=1000 install -U matplotlib
来下载matplotlib,让它的延迟检测时间变长。
也可以指定下载⽹站
国内镜像⽹站。