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

  • 相关阅读:
    【转】Linux目录结构FHS
    单链表是否有环并如何找到环入口
    【转】linux dd 的简单应用
    DataSet、ExecuteScalar、ExecuteReader
    解决Excel只验证前8行字符串的长度
    SQL Server UPSERT equivalent
    用通配符替换字符串
    从内存中查询表字段定义的长度大小
    C#判断一个字符串是否为整数
    page life cycle of master page with content page
  • 原文地址:https://www.cnblogs.com/emanlee/p/12357830.html
Copyright © 2011-2022 走看看