python-dev 安装错误

/********************************************************************
 *                    python-dev 安装错误
 * 说明:
 *     今天在安装python相关开发工具的时候出现了这个错误。
 *
 *                                  2016-8-15 深圳 南山平山村 曾剑锋
 *******************************************************************/

一. 参考文档:
    1. Can‘t install python-dev
        http://askubuntu.com/questions/749552/cant-install-python-dev

二. 错误现象:
    [email protected]:/home# apt-get install python-dev
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
     python-dev : Depends: libpython-dev (= 2.7.9-1) but it is not going to be installed
                  Depends: python2.7-dev (>= 2.7.9-1~) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

三. 解决办法:
    1. cat /etc/apt/sources.list
        ......
        deb http://cz.archive.ubuntu.com/ubuntu wily main
        ......
    2. sudo apt-get update
    3. apt-get install python-dev
时间: 2024-08-20 00:35:29

python-dev 安装错误的相关文章

python pcapy 安装错误 link.exe failed with exit status 1120

Win7 64位 安装pcapy 包时报错: error: command '"C:\Users\Administrator\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\link.exe"' failed with exit status 1120 安装过程参考如下后,依然报错: http://blog.csdn.net/qidi_huang/article/details

python matplotlib 安装 和错误处理

首先我参考是:http://www.cnblogs.com/lifegoesonitself/p/3443866.html 这篇博文中的问题我都遇到了,首先是大体流程: Matplotlib的安装 matplotlib 是python最著名的绘图库,它提供了一整套和matlab相似的命令API,十分适合交互式地 进行制图.Matplotlib的安装可以参见 官网链接 http://matplotlib.org/users/installing.html 下面总结步骤如下: windows 平台上

mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory

安装mysql-python之前, 请先安装setuptools. https://pypi.python.org/pypi/setuptools/7.0 下载mysql-python. 下载源码包. https://pypi.python.org/pypi/MySQL-python/1.2.5 解压后执行 python setup.py install 提示错误: fatal error C1083: Cannot open include file: 'config-win.h': No s

python 基础安装使用

首先我们来学习一下怎么安装python和更新python,再来学习一些简单的解释器.变量.编码内容.循环等代码 第一步开始安装Python环境 安装Python windows: 1 2 3 4 5 6 7 1.下载安装包     https://www.python.org/downloads/ 2.安装     默认安装路径:C:\python27 3.配置环境变量     [右键计算机]-->[属性]-->[高级系统设置]-->[高级]-->[环境变量]-->[在第二个

初学python之安装Jupyter notebook

一开始安装python的时候,安装的是最新版的python3.6的最新版.而且怕出问题,选择的都是默认安装路径.以为这样总不会出什么问题.一开始确实这样,安装modgodb等一切顺利.然而在安装jupyter botebook的时候确出现了问题. 安装mongodb的时候有提示我pip的版本是8.1.2,最新版的是9.0.0,我当时没有更新.昨晚安装jupyter的时候最后出现了exception,不知道怎么解决,网上也没有相关的资料.然后我升级pip,也是类似的exception.迷样的异常搞

kali 2.0 U盘安装错误Your installation cd-rom couldn't be mounted

1.kali 2.0前天(2015.08.11)发布了.果断下载下来换掉本机的1.0版本. 2.用U盘安装的过程中,出现cd-rom无法挂载.提示错误Your installation CD-ROM couldn't be mounted. 3.在谷歌搜索后,参考国外的http://serverfault.com/questions/685302/unattended-installation-of-ubuntu-from-usb-drive-not-mounted-correctly 4.经过

64位win7,32位python下安装libsvm

先说明一下我的各个版本,电脑win7 64位,python 2.7版本32位,已安装的各种python库都是32位. 所以我这篇文章针对的是以上配置的情况,如果你是64位系统,64位python,请参考 http://blog.csdn.net/lj695242104/article/details/39500039 中.dll文件的获得方法. 我在安装时,被两个error困了一整天,一个是"WindowsError: [Error 193] %1 不是有效的 Win32",另一个是E

Sublime Text 2下搭建Python环境经常性错误

Sublime Text 2下搭建Python环境时,最容易出的错误就是Python环境配置错误,导致build(Ctrl+B)后没有任何反应. 关于Python编程环境的配置,网上很容易搜索到.先默认你已经在windows上安装好了Python编译环境,并且在sublime text 2中已经安装好了必要的插件.下边我们就直接配置Python了,让Python代码能够在Sublime Text 2里欢快的跑起来.常见的配置主要是两种. 一.在Windows高级系统设置里设置好环境变量的系统变量

Python Scrapy安装杂症记录

昨天安装了scrapy一切正常,调试了bbsSpider案例(详见上文),今日开机因为冰封还原,提示找不到python27.dll,重新安装了python2.7, 使用easy-install scrapy 提示错误:pkg_resources.DistributionNotFound: pyasn1 百度后,说是需要重新安装distribut包,安装步骤如下: 下载 distribution : https://pypi.python.org/pypi/distribute cd distri

python模块安装方式及相关问题

一.python模块 (1)在线安装 先下载ez_setup.py,在命令行运行python ez_setup.py进行easy_install工具的安装后,将C:\Python27\Scripts路径加入环境变量中,就可以使用easy_install在线安装package了,例如 easy_install  mysql-connector-python 卸载使用 easy_install -m mysql-connector-python (2)手动安装 不能在上网环境下可以先下载模块包,解压