相关疑难解决方法(0)

pip无法安装任何东西

> pip install yolk
Downloading/unpacking yolk
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement yolk
No distributions at all found for yolk
Storing complete log in /Users/harith/.pip/pip.log
Run Code Online (Sandbox Code Playgroud)

当我看到我看到的文件时

> cat /Users/harith/.pip/pip.log
------------------------------------------------------------
/Users/harith/.shared/virtualenvs/pennytracker/bin/pip run on Mon Jul  1 20:26:02 2013
Downloading/unpacking yolk

  Getting page https://pypi.python.org/simple/yolk/
  Could not fetch URL https://pypi.python.org/simple/yolk/: HTTP Error 503: Service Unavailable
  Will skip URL https://pypi.python.org/simple/yolk/ when looking for download links for yolk
  Getting page https://pypi.python.org/simple/
  Could not fetch URL …
Run Code Online (Sandbox Code Playgroud)

python pip

32
推荐指数
4
解决办法
12万
查看次数

更新pip.conf文件以使用https

我无法配置我的pip.conf文件以规定PIP应该从https://pypi.python.org/simple/而不是http://pypi.python.org/simple/查找下载

我有一个相关的问题发布PIP无法找到满足SQLAlchemy要求的任何下载,其中有几个人诊断出了什么问题.但是我无法解决问题.

我打开我的pip.conf文件位于/home/user/.pip/pip.conf使用pip配置文件文档我添加了下面.文件中没有其他内容.

[global]
timeout = 60
find-links = https://pypi.python.org/simple/

[install]
find-links = https://pypi.python.org/simple/
Run Code Online (Sandbox Code Playgroud)

保存退出后没有变化.我仍然无法运行pip install等命令

$ sudo pip install SQLAlchemy
Downloading/unpacking SQLAlchemy
  Cannot fetch index base URL http://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement SQLAlchemy
No distributions at all found for SQLAlchemy
Storing complete log in /home/user/.pip/pip.log 
Run Code Online (Sandbox Code Playgroud)

我的设置

  • Ubunto 12.04 VM

python pip

7
推荐指数
2
解决办法
5万
查看次数

在virtualenv中python pip错误'无法获取索引基本URL'

可以pip install -r requirements.txt直接使用,但是,当我试图在virtualenv中使用它时,它失败了这些错误:

test@te:~$ cd flaskbb/
test@te:~/flaskbb$ 
test@te:~/flaskbb$ source .venv/bin/activate
(.venv)test@te:~/flaskbb$ pip install -r requirements.txt 
Obtaining file:///home/test/flaskbb (from -r requirements.txt (line 50))
  Running setup.py egg_info for package from file:///home/test/flaskbb

    no previously-included directories found matching 'flaskbb/themes/*/node_modules'
    no previously-included directories found matching 'flaskbb/themes/*/.sass-cache'
    warning: no previously-included files matching '__pycache__' found anywhere in distribution
    warning: no previously-included files matching '*.py[co]' found anywhere in distribution
Downloading/unpacking alembic==0.9.1 (from -r requirements.txt (line 1))
  Cannot fetch index base URL http://pypi.python.org/simple/
  Could …
Run Code Online (Sandbox Code Playgroud)

pip virtualenv python-2.7 ubuntu-12.04

1
推荐指数
1
解决办法
4694
查看次数

标签 统计

pip ×3

python ×2

python-2.7 ×1

ubuntu-12.04 ×1

virtualenv ×1