Python出现Could not find a version that satisfies the requirement openpyxl (from versions: )

My木岩 2018-12-27 21:29:46  133669  收藏 97

分类专栏: Python 文章标签: pip和pip3区别python运维openxyl

版权

一.环境

使用python3.7时,用pip安装openpyxl出现如下错误:

  1. 系统环境:windows10家庭版
  2. Python版本:python3.7.1
  3. IDE:sublime_text 3

二. 解决方案

  1. 按照提示所示是其中一个原因是pip版本过低,需要更新pip:
    python -m pip install --upgrade pip
    由于python国内网络不稳定,一直报错,升级了很多次才成功。
  2. 然后继续还是报错:
  3. 可能考虑到是python国内网络的问题,这时我们用国内的镜像源来加速。
    pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
    这个是豆瓣源
    --trusted-host pypi.douban.com 这是为了获得ssl证书的认证,要不然会报错
    然而还是报错,可能是我电脑网络原因,常理来说都可以安装成功的,大家到这一步可能应该已经解决问题了。
  4. 我最后还是用pip3 install openpyxl尝试很多次后才安装成功。

三. pip和pip3的区别

其实这两个命令效果是一样的,没有区别:

  1. 比如安装库openpyxl,pip3 install openpyxl或者pip install openpyxl:只是当一台电脑同时有多个版本的Python的时候,用pip3就可以自动区分用Python3来安装库。是为了避免和Python2发生冲突的。
    (2)如果你的电脑只安装了Python3,那么不管用pip还是pip3都一样的。
  2. 安装了python3之后,会有pip3
    (1)使用pip install XXX :
    新安装的库会放在这个目录下面:python2.7/site-packages
    (2)使用pip3 install XXX :
    新安装的库会放在这个目录下面:python3.7/site-packages
    (3)如果使用python3执行程序,那么就不能importpython2.7/site-packages中的库。

镜像安装Python出现Could not find a version that satisfies the requirement openpyxl (from versions: )相关推荐

  1. 【Python】Could not find a version that satisfies the requirement cv2 (from versions: ) 的解决方案

    pip下载cv2出现下面的错误:   Could not find a version that satisfies the requirement cv2 (from versions: ) No ...

  2. python ERROR: Could not find a version that satisfies the requirement requests (from versions: none)

    pip 安装python 包遇到如下问题,可能只是配置的镜像源不可以用了,可以多试几个镜像源,之前一直用的清华或者官方的,就是不行.弄得怀疑人生. pip install openpyxl -i ht ...

  3. pip安装python包出错:Could not find a version that satisfies the requirement skimage (from versions: )...

    pip安装python包出错:Could not find a version that satisfies the requirement skimage (from versions: ) 今天用 ...

  4. pycharm安装模块提示RROR: Could not find a version that satisfies the requirement bs4 (from versions: none)

    更换了安装源,使用pycharm安装模块提示错误信息RROR: Could not find a version that satisfies the requirement bs4 (from ve ...

  5. Python安装库Could not find a version that satisfies the requirement requests (from versions: none)

    解决 # 更新pip python -m pip install --upgrade pip # 安装 pip install 包名 -i http://pypi.douban.com/simple/ ...

  6. pip安装python包出错:Could not find a version that satisfies the requirement skimage (from versions: )

  7. pip安装pandas失败Could not find a version that satisfies the requirement pandas

    弄了好久了没弄好,以下是尝试过的自己失败的方法(好像有的人可以这样弄好,但我这样还是失败): python -m pip install pandas -i https://pypi.tuna.tsi ...

  8. pip安装出现ERROR: Could not find a version that satisfies the requirement xxx问题的解决办法

    转自:解决 ERROR: Could not find a version that satisfies the requirement xxx 的问题_JMU-HZH的博客-CSDN博客

  9. 「Python」Mac下pip出现command not found和Could not find a version that satisfies the requirement ...解决方式

    两个报错的解决方式在第2和3 问题描述 command not found解决方式 Could not find a version that satisfies the requirement... ...

  10. python镜像安装是什么意思_通过PyPI镜像安装Python包

    有时,我们直接用pip install package_name安装包时,下载很慢,我们可以尝试从PyPI镜像下载包. 这里是镜像列表和目前的状态: http://www.pypi-mirrors.o ...

最新文章

  1. 免费下载!200+讲者核心观点公布!2021最强AI学术会议视频全部回放
  2. [转自scott]ASP.NET MVC框架 (第二部分): URL路径选择
  3. 清华大四本科生2篇一作论文入选ICML 2020,后浪果然翻涌
  4. 科大星云诗社动态20210806
  5. git 本地分支与远程分支关联的一种方法
  6. 亚伦•斯沃茨:提升时间的品质
  7. vue命令行错误处理
  8. THU: 成绩录入系统的bug
  9. H3C认证无线高级工程师
  10. oracle整张表转置,从Oracle表格行列转置说起...
  11. 不小心合并了icloud通讯录_苹果手机号码被删除如何恢复?找回通讯录的具体步骤...
  12. java连接数据库的解决方法大全(mysql)
  13. 无锡php公司,start.php
  14. 注册谷歌账号,提示“此电话号码无法用于进行验证”
  15. EAS BOS:序时簿中获取选中行中某单元格的值方法
  16. 人工智能、大数据和云计算之间,它们之间主要有什么关系?
  17. 洛谷P3435 [POI2006]OKR-Periods of Words题解(KMP)
  18. 嵌入式Linux开发板_WIFI无线网卡驱动移植
  19. uniapp 获取商米本机SN码
  20. Homepod评测:一款音质超棒但低智商的音箱

热门文章

  1. Codeforces - 1191D - Tokitsukaze, CSL and Stone Game - 博弈论
  2. 使用原生JS封装Ajax
  3. Perl文件内容对比
  4. UCHOME ajaxmenU()用法
  5. Levenshtein编辑距离C++实现
  6. 从零基础入门Tensorflow2.0 ----八、39.2. gpu2
  7. 数组中的奇数排在偶数组前面
  8. 模板题——堆排序 哈希表 字符串哈希
  9. Numpy入门(详看注释)
  10. 【ArcGIS|空间分析|网络分析】7 使用一支车队服务一组停靠点