zoukankan      html  css  js  c++  java
  • python-dev 安装错误

    /********************************************************************
     *                    python-dev 安装错误
     * 说明:
     *     今天在安装python相关开发工具的时候出现了这个错误。
     *
     *                                  2016-8-15 深圳 南山平山村 曾剑锋
     *******************************************************************/
    
    一. 参考文档:
        1. Can't install python-dev
            http://askubuntu.com/questions/749552/cant-install-python-dev
    
    二. 错误现象:
        root@workflow:/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
  • 相关阅读:
    自动化测试常用断言的使用方法
    python接口自动化-有token的接口项目使用unittest框架设计
    postman
    HTML5基础
    HTML基础
    Web常见产品问题及预防
    JSON语法详解
    HTTP协议详解
    接口理论详解
    设计模式之装饰者模式
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/5772449.html
Copyright © 2011-2022 走看看