zoukankan      html  css  js  c++  java
  • pycharm 安装模块 use the correct version of 'pip' installed for your Python interpreter

    python安装包的过程是比较复杂和麻烦的,可能会出现各种错误。比起R语言安装包要复杂很多。

    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 'C:UsersAdministratorPycharmProjectsuntitledvenvScriptspython.exe'.

    在下载库的界面点击 Manage Repositories

     通过切换下载源就可以解决问题啦

    清华:

    https://pypi.tuna.tsinghua.edu.cn/simple
    阿里:

    http://mirrors.aliyun.com/pypi/simple/
    豆瓣:

    http://pypi.douban.com/simple/
    华中理工大学:

    http://pypi.hustunique.com/
    山东理工大学:

    http://pypi.sdutlinux.org/
    中国科学技术大学:

    http://pypi.mirrors.ustc.edu.cn/

    默认值:

    https://pypi.python.org/simple


    ————————————————

    安装 sklearn,python3.7, pip 19.0.3, 使用了 https://pypi.doubanio.com/simple/

    安装 numpy,scipy,matplotlib,python3.7, pip 19.0.3, 使用了 https://pypi.mirrors.ustc.edu.cn/simple/

    tensorflow,尝试了 https://pypi.doubanio.com/simple/,http://mirrors.aliyun.com/pypi/simple/https://pypi.mirrors.ustc.edu.cn/simple/https://pypi.tuna.tsinghua.edu.cn/simple/https://www.lfd.uci.edu/~gohlke/pythonlibs/,都失败

     ————————————————

    常用pip的镜像路径有:

    1.阿里云 (经过测试,pip提示版本不正确)

    pip install 包名 -i http://mirrors.aliyun.com/pypi/simple/

    2.中国科技大学 (经过测试,能用)
    pip install 包名 -i https://pypi.mirrors.ustc.edu.cn/simple/

    3.豆瓣
    pip install 包名 -i http://pypi.douban.com/simple/

    4.清华大学  (经过测试,不能用)
    pip install 包名 -i https://pypi.tuna.tsinghua.edu.cn/simple/

    5.中国科学技术大学
    pip install 包名 -i http://pypi.mirrors.ustc.edu.cn/simple/

    6.加利福利亚大学
    pip install 包名 -i https://www.lfd.uci.edu/~gohlke/pythonlibs/
    ————————————————
     
    原文链接:https://blog.csdn.net/qq_44142640/article/details/104214185

  • 相关阅读:
    spring-boot-maven-plugin not found的解决方案
    springboot项目idea代码报红,maven clean, maven reimport都不起作用
    ubuntu升级python版本(3.5 -> 3.6)
    安卓时间戳转成时间存在误差
    litepal创建数据库表失败
    安卓实现标题和按钮在一行,按钮靠最右边布局
    idea2019设置智能提示忽略大小写
    PowerDesigner连接MySQL逆向生成PDM
    javaweb开发页面数字过长显示科学计数法的问题
    react native cannot read property 'navigate' of undefined
  • 原文地址:https://www.cnblogs.com/emanlee/p/12357830.html
Copyright © 2011-2022 走看看