全网最详细的用pip安装****模块报错:Could not find a version that satisfies the requirement ****(from version:) No ...

 

 

 

    不多说,直接上干货!

 

 

 

问题详情

    这个问题,很普遍。如我这里想实现,Windows下Anaconda2 / Anaconda3里正确下载安装用来向微信好友发送消息的itchat库。

 

    见,我撰写的

 

全网最全的Windows下Anaconda2 / Anaconda3里正确下载安装用来向微信好友发送消息的itchat库(图文详解)

 

 

全网最详细的用pip安装****模块报错:Could not find a version that satisfies the requirement ****(from version:) No ..._第1张图片

 

 

  

 

 

 

全网最详细的用pip安装****模块报错:Could not find a version that satisfies the requirement ****(from version:) No ..._第2张图片

 

 

 

    出现:

 

PS C:\Anaconda3\Scripts> pip3.exe install itchat
Collecting itchat
  Could not find a version that satisfies the requirement itchat (from versions: )
No matching distribution found for itchat

 

 

    或者出现:

  cmd中想用pip安装pymongo模块

  显示黄色错误信息ReadTimeoutError和ConnectTimeoutError

  Retrying几次之后显示红色错误信息Could not find a version that satisfies the requirement pymongo(from version:)   No matching distribution found for pymongo

  报错信息如下图所示:

    全网最详细的用pip安装****模块报错:Could not find a version that satisfies the requirement ****(from version:) No ..._第3张图片

 

 

 

 

 

  看有些网友说是因为网络的问题,要使用国内的镜像源来加速:pip install pymongo -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

  又出现报错了:

全网最详细的用pip安装****模块报错:Could not find a version that satisfies the requirement ****(from version:) No ..._第4张图片

 

 

 

 

 

 

  问题解决

     多执行几次

全网最详细的用pip安装****模块报错:Could not find a version that satisfies the requirement ****(from version:) No ..._第5张图片

PS C:\Anaconda3\Scripts>
PS C:\Anaconda3\Scripts> pip3.exe install itchat
Collecting itchat
  Could not find a version that satisfies the requirement itchat (from versions: )
No matching distribution found for itchat
PS C:\Anaconda3\Scripts> pip3.exe install itchat
Collecting itchat
  Downloading https://files.pythonhosted.org/packages/57/99/20dde4bee645453d1453ae3757b49f24a5fd179ce6e391cf2542cfeac61c/itchat-1.3.10-py2.py3-none-any.whl
Collecting pypng (from itchat)
  Downloading https://files.pythonhosted.org/packages/2f/b1/c8dfcf50feb12a30be7d95c5f45d638704682487d8e50419ef41463febcd/pypng-0.0.18.tar.gz (377kB)
    100% |████████████████████████████████| 378kB 785kB/s
Collecting pyqrcode (from itchat)
  Downloading https://files.pythonhosted.org/packages/37/61/f07226075c347897937d4086ef8e55f0a62ae535e28069884ac68d979316/PyQRCode-1.2.1.tar.gz
Requirement already satisfied: requests in c:\anaconda3\lib\site-packages (from itchat) (2.14.2)
Building wheels for collected packages: pypng, pyqrcode
  Running setup.py bdist_wheel for pypng ... done
  Stored in directory: C:\Users\lenovo\AppData\Local\pip\Cache\wheels\ed\30\6c\21dd4d267f47ea09fb57881b30fe16f7231b71bd26dea38afc
  Running setup.py bdist_wheel for pyqrcode ... done
  Stored in directory: C:\Users\lenovo\AppData\Local\pip\Cache\wheels\54\61\2f\a4f51b09473db5737db0f654ed10eb9a4ee01f83a7412de349
Successfully built pypng pyqrcode
Installing collected packages: pypng, pyqrcode, itchat
Successfully installed itchat-1.3.10 pypng-0.0.18 pyqrcode-1.2.1
PS C:\Anaconda3\Scripts>

 

 

 

 

 

  或者

   不过这次报错信息比较友好,提示pip版本太低需要升级,就按照它提示的命令输入,但是update的过程失败了好几次,多执行几次就好了,我是第4次才成功:

 全网最详细的用pip安装****模块报错:Could not find a version that satisfies the requirement ****(from version:) No ..._第6张图片

  至此成功更新pip!

 

 

  接下来输入你一开始要执行的命令pip install pymongo,就可以成功安装啦!

全网最详细的用pip安装****模块报错:Could not find a version that satisfies the requirement ****(from version:) No ..._第7张图片

 

 

 

 

 

 

 

 

 

欢迎大家,加入我的微信公众号:大数据躺过的坑        人工智能躺过的坑
 
 
 

同时,大家可以关注我的个人博客

   http://www.cnblogs.com/zlslch/   和     http://www.cnblogs.com/lchzls/      http://www.cnblogs.com/sunnyDream/   

   详情请见:http://www.cnblogs.com/zlslch/p/7473861.html

 

  人生苦短,我愿分享。本公众号将秉持活到老学到老学习无休止的交流分享开源精神,汇聚于互联网和个人学习工作的精华干货知识,一切来于互联网,反馈回互联网。
  目前研究领域:大数据、机器学习、深度学习、人工智能、数据挖掘、数据分析。 语言涉及:Java、Scala、Python、Shell、Linux等 。同时还涉及平常所使用的手机、电脑和互联网上的使用技巧、问题和实用软件。 只要你一直关注和呆在群里,每天必须有收获

 

      对应本平台的讨论和答疑QQ群:大数据和人工智能躺过的坑(总群)(161156071) 

 

 

 

 

 

 

 

 

 

 

 

 

 

你可能感兴趣的:(全网最详细的用pip安装****模块报错:Could not find a version that satisfies the requirement ****(from version:) No ...)