python-dev无法安装,求助
安装pyrex后,使用时需要Python.h头文件,在网上查询到需要安装python-dev,
于是sudo apt-get install python-dev,(Ubunto12.04系统),提示以下错误:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:
下列软件包有未满足的依赖关系:
python-dev : 依赖: python2.7-dev (>= 2.7.3) 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
再次使用:udo apt-get install python2.7-dev:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:
下列软件包有未满足的依赖关系:
python2.7-dev : 依赖: python2.7 (= 2.7.3-0ubuntu3) 但是 2.7.3-0ubuntu3.1 正要被安装
依赖: libpython2.7 (= 2.7.3-0ubuntu3) 但是 2.7.3-0ubuntu3.1 正要被安装
依赖: libexpat1-dev 但是它将不会被安装
依赖: libssl-dev 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
后来使用 pip install python-dev,还是错误:
Downloading/unpacking python-dev
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement python-dev
No distributions at all found for python-dev
Storing complete log in /home/yuyang/.pip/pip.log
log文件内容如下:
------------------------------------------------------------
/usr/bin/pip run on Fri May 17 17:27:00 2013
Downloading/unpacking python-dev
Getting page http://pypi.python.org/simple/python-dev
Could not fetch URL http://pypi.python.org/simple/python-dev: HTTP Error 404: Not Found (python-dev does not have any releases)
Will skip URL http://pypi.python.org/simple/python-dev when looking for download links for python-dev
Getting page http://pypi.python.org/simple/
Could not fetch URL http://pypi.python.org/simple/: HTTP Error 503: Service Unavailable
Will skip URL http://pypi.python.org/simple/ when looking for download links for python-dev
Cannot fetch index base URL http://pypi.python.org/simple/
URLs to search for versions for python-dev:
* http://pypi.python.org/simple/python-dev/
Getting page http://pypi.python.org/simple/python-dev/
Could not fetch URL http://pypi.python.org/simple/python-dev/: HTTP Error 503: Service Unavailable
Will skip URL http://pypi.python.org/simple/python-dev/ when looking for download links for python-dev
Could not find any downloads that satisfy the requirement python-dev
No distributions at all found for python-dev
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 948, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 152, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for python-dev
貌似是没有这个包,请问各位,也没有遇到这样的情况,该怎么办啊>?