zoukankan      html  css  js  c++  java
  • Pycharm 安装 numpy

     File菜单,Settings

     选择项目 Project,点击 Project Interpreter,点击右侧的 +

     在上方的文本框中输入numpy,再在下面点击 install packages

    状态栏有进度

    可能报错:

     pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', 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:xxxLSTM_WATERvenvScriptspython.exe'.

    可能原因网速太慢

    使用命令安装

    特别注意:注意pip的版本

    pip --default-timeout=1000 install -U 模块名
    例如
    pip --default-timeout=1000 install -U matplotlib
    来下载matplotlib,让它的延迟检测时间变长。

    也可以指定下载网站

    pip --default-timeout=100 install 库名称 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

    pip --default-timeout=1000 install -U numpy  -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

    pip --default-timeout=1000 install -U matplotlib.pyplot -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
    pip --default-timeout=1000 install -U matplotlib  -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
     
    pip --default-timeout=1000 install -U pandas -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

    pip --default-timeout=1000 install -U sklearn -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
     

     

     

    国内镜像网站。

    清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/

    中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 华中科技大学:http://pypi.hustunique.com/

    山东理工大学:http://pypi.sdutlinux.org/ 豆瓣:http://pypi.douban.com/simple/

  • 相关阅读:
    FineUIPro v5.1.0 发布了!
    FineUI十周年纪念版即将发布(基于像素的响应式布局,独此一家)!
    FineUIPro/Mvc/Core/JS v4.2.0 发布了(老牌ASP.NET控件库,WebForms,ASP.NET MVC,Core,JavaScript)!
    选择IT公司的雇主提问
    项目管理趋势
    突发事件下的项目管理
    12-Factor与微服务
    CQRS(Command and Query Responsibility Segregation)与EventSources实例
    阅读理解力的四个层次
    2018年Code Review状态报告
  • 原文地址:https://www.cnblogs.com/emanlee/p/14327652.html
Copyright © 2011-2022 走看看