python-dev 安装错误

简介: /******************************************************************** * python-dev 安装错误 * 说明: * 今天在安装python相关开发工具的时候出现了这个错误。
/********************************************************************
 *                    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

 

目录
相关文章
|
15小时前
|
Ubuntu Python
Ubuntu 安装Python3.8
Ubuntu 安装Python3.8
39 0
|
15小时前
|
Web App开发 测试技术 Python
【如何学习python自动化测试】—— 浏览器驱动的安装 以及 如何更新driver
【如何学习python自动化测试】—— 浏览器驱动的安装 以及 如何更新driver
7 0
|
15小时前
|
Web App开发 测试技术 C++
Playwright安装与Python集成:探索跨浏览器测试的奇妙世界
Playwright是新兴的跨浏览器测试工具,相比Selenium,它支持Chrome、Firefox、WebKit,执行速度快,选择器更稳定。安装Playwright只需一条`pip install playwright`的命令,随后的`playwright install`会自动添加浏览器,无需处理浏览器驱动问题。这一优势免去了Selenium中匹配驱动的烦恼。文章适合寻求高效自动化测试解决方案的开发者。
12 2
|
15小时前
|
关系型数据库 MySQL 数据库
Python Stock安装与使用
Python Stock安装与使用
|
15小时前
|
Shell 数据安全/隐私保护 Docker
docker安装anaconda3 python环境
docker安装anaconda3 python环境
11 0
|
15小时前
|
数据采集 iOS开发 MacOS
Python及Pycharm安装教程
Python及Pycharm安装教程
24 0
|
15小时前
|
Linux Python Windows
Python虚拟环境virtualenv安装保姆级教程(Windows和linux)
Python虚拟环境virtualenv安装保姆级教程(Windows和linux)
|
15小时前
|
机器学习/深度学习 数据可视化 数据挖掘
Python绘图工具Matplotlib安装与使用,快速上手
Python绘图工具Matplotlib安装与使用,快速上手
|
15小时前
|
Linux Python Windows
python安装pytest
【4月更文挑战第22天】
34 5
|
15小时前
|
C++ Python
python安装HLL报错unable to find vcvarsall.bat
通过上述方法之一,你应该能够解决"unable to find vcvarsall.bat"的错误,并成功安装HLL或其他需要编译的Python扩展。确保在安装之前先安装了Visual C++构建工具。
10 0