pip install 报错

问题描述,在使用pip安装django相关软件包时,提示错误如下:

[[email protected] install]# pip install django==1.6
Downloading/unpacking django==1.6
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement django==1.6
Cleaning up...
No distributions at all found for django==1.6
Storing debug log for failure in /root/.pip/pip.log

解决方案:使用国内镜像

加上参数"-i http://pypi.v2ex.com/simple",即换成国内镜像

[[email protected] install]# pip  install django==1.6 -i http://pypi.v2ex.com/simple
Downloading/unpacking django==1.6
  Real name of requirement django is django
  http://pypi.v2ex.com/simple/django/1.6 uses an insecure transport scheme (http). Consider using https if pypi.v2ex.com has it available
  http://pypi.v2ex.com/simple/django/ uses an insecure transport scheme (http). Consider using https if pypi.v2ex.com has it available
  Downloading Django-1.6-py2.py3-none-any.whl (6.7MB): 6.7MB downloaded
Installing collected packages: django
Successfully installed django
Cleaning up...
[[email protected] install]#
时间: 2024-11-08 14:47:56

pip install 报错的相关文章

pip install报错Can't roll back cryptography; was not uninstalled

当使用pip install或者pip install --upgrade报错 Can't roll back cryptography; was not uninstalled 可以进行以下的尝试: sudo apt-get install libssl-dev libffi-dev 之后再继续php install pip install报错Can't roll back cryptography; was not uninstalled

python2.7.6 , setuptools pip install, 报错:UnicodeDecodeError:'ascii' codec can't decode byte

今天折腾了一天,安装pyspider,由于依赖包众多,而且搜索到所有信息多是在linux平台和mac平台下的安装教程.可怜我试了n多版本,一直不成功. 最后发现有人说python的版本,不能低于2.7.6,否则pycurl无法安装成功,一查我的是2.7.2. 好吧,卸载,重新安装python2.7.6. 似乎安装后,能够顺利安装pycurl了,但是easy_install 报错信息与编码相关: 在网上搜索找到解决方案:http://www.360doc.com/content/14/0508/0

Mac OS X El Capitan (10.11) sudo pip install 报错 “OSError: [Errno 1] Operation not permitted”

由于 OS X El Capitan 采用了 System Integrity Protection 保护技术,导致 sudo pip install 安装python包时会产生报错: 1 File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 150, in makedirs 2 makedirs(head, mode) 3 File "/System

pip install 报错 Could not fetch URL

Could not fetch URL https://pypi.python.org/simple/xxx/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) - skipping Could not find a version that satisfies the requirement xx

pip升级报错 ImportError: cannot import name 'main'

[email protected]:/usr/bin# pip3 install pyaudio Traceback (most recent call last): File "/usr/bin/pip3", line 9, in <module> from pip import main ImportError: cannot import name 'main' 参考:https://stackoverflow.com/questions/28210269/impor

输入pip命令报错:from pip import main ImportError: cannot import name &#39;main&#39;

报错信息: [email protected]:~$ pip Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name 'main' 很多博文的解决方案是,可能他们执行这命令有效果,我这ubuntu是不管怎么升级都只能是pip的8版本,也没找到如何pip的10版本设为默认版本,

python pip install 报:HTTPSConnectionPool(host=&#39;files.pythonhosted.org&#39;, port=443): Read timed out.错误

下午想要安装 scrapy框架时报错,如图: 网上查了一下:因为网络差导致安装超时,所以用安装时指定源的方法可以解决: pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple 红色的字体表示要安装的模块 python pip install 报:HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.错误 原文地址:https:/

pip下载报错cannot import name &#39;FormatControl&#39;

今天在pycharm中通过pip install下载插件时,不知道什么原因出了错 解决方法:降低了pip的版本 pip下载地址:https://pypi.org/project/pip/19.1.1/#files 下载后解压,并进入解压后的文件 输入 python setup.py install 之后pip成功降级,错误也解决了 pip下载报错cannot import name 'FormatControl' 原文地址:https://www.cnblogs.com/liujinxin123

Eclipse中mvn install 报错error in opening zip file

报错信息 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project wms: Compilation failure [ERROR] Failure executing javac, but could not parse the error: [ERROR] 错误: 读取C:\Users\Administrato