apt-get install libpython3.5-dev 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。

报错

 ERROR: Command errored out with exit status 1:
   command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_xsbkpmo/rcssmin_100f1570b60a456caf237b06c9889961/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_xsbkpmo/rcssmin_100f1570b60a456caf237b06c9889961/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-344uxore
       cwd: /tmp/pip-install-_xsbkpmo/rcssmin_100f1570b60a456caf237b06c9889961/
  Complete output (14 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.5
  copying ./rcssmin.py -> build/lib.linux-x86_64-3.5
  running build_ext
  building '_rcssmin' extension
  creating build/temp.linux-x86_64-3.5
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DEXT_MODULE=_rcssmin -UEXT_PACKAGE -I_setup/include -I/usr/include/python3.5m -c rcssmin.c -o build/temp.linux-x86_64-3.5/rcssmin.o
  In file included from rcssmin.c:18:0:
  _setup/include/cext.h:34:20: fatal error: Python.h: 没有那个文件或目录
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for rcssmin
  Running setup.py clean for rcssmin
  Building wheel for rjsmin (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_xsbkpmo/rjsmin_e0ca64be9931442aac15d1f9ded74d1f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_xsbkpmo/rjsmin_e0ca64be9931442aac15d1f9ded74d1f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-gxa4hryu
       cwd: /tmp/pip-install-_xsbkpmo/rjsmin_e0ca64be9931442aac15d1f9ded74d1f/
  Complete output (14 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.5
  copying ./rjsmin.py -> build/lib.linux-x86_64-3.5
  running build_ext
  building '_rjsmin' extension
  creating build/temp.linux-x86_64-3.5
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DEXT_MODULE=_rjsmin -UEXT_PACKAGE -I_setup/include -I/usr/include/python3.5m -c rjsmin.c -o build/temp.linux-x86_64-3.5/rjsmin.o
  In file included from rjsmin.c:18:0:
  _setup/include/cext.h:34:20: fatal error: Python.h: 没有那个文件或目录
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for rjsmin
  Running setup.py clean for rjsmin
Failed to build rcssmin rjsmin
Installing collected packages: rjsmin, rcssmin, pyasn1, joblib, idna, gitdb2, funcy, EasyProcess, django-appconf, Django, chardet, certifi, scikit-learn, rules, requests, pyunpack, python-logstash, pydash, pyasn1-modules, psycopg2-binary, Pillow, logstash, GitPython, ffmpy, extensions, django-sendfile, django-rq, django-revproxy, django-extensions, django-compressor, django-cacheops, dj-pagination
    Running setup.py install for rjsmin ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_xsbkpmo/rjsmin_e0ca64be9931442aac15d1f9ded74d1f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_xsbkpmo/rjsmin_e0ca64be9931442aac15d1f9ded74d1f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-lme8bs6p/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/yin/.local/include/python3.5m/rjsmin
         cwd: /tmp/pip-install-_xsbkpmo/rjsmin_e0ca64be9931442aac15d1f9ded74d1f/
    Complete output (14 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    copying ./rjsmin.py -> build/lib.linux-x86_64-3.5
    running build_ext
    building '_rjsmin' extension
    creating build/temp.linux-x86_64-3.5
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DEXT_MODULE=_rjsmin -UEXT_PACKAGE -I_setup/include -I/usr/include/python3.5m -c rjsmin.c -o build/temp.linux-x86_64-3.5/rjsmin.o
    In file included from rjsmin.c:18:0:
    _setup/include/cext.h:34:20: fatal error: Python.h: 没有那个文件或目录
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_xsbkpmo/rjsmin_e0ca64be9931442aac15d1f9ded74d1f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_xsbkpmo/rjsmin_e0ca64be9931442aac15d1f9ded74d1f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-lme8bs6p/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/yin/.local/include/python3.5m/rjsmin Check the logs for full command output.

安装python3.5依赖报错

yin@yin-virtual-machine:~/yin_alp/alphahmls/web_dev$ apt-get install libpython3.5-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:

下列软件包有未满足的依赖关系:
 libpython3.5-dev : 依赖: libpython3.5-stdlib (= 3.5.2-2ubuntu0~16.04.4~14.04.1) 但是 3.5.2-2ubuntu0~16.04.13 正要被安装
                    依赖: libpython3.5 (= 3.5.2-2ubuntu0~16.04.4~14.04.1) 但是 3.5.2-2ubuntu0~16.04.13 正要被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
yin@yin-virtual-machine:~/yin_alp/alphahmls/web_dev$ sudo apt-get install python3-dev libxml2-dev libffi-dev libssl-dev libxslt1-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
libssl-dev 已经是最新版 (1.0.2g-1ubuntu4.19)。
libffi-dev 已经是最新版 (3.2.1-4)。
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:

下列软件包有未满足的依赖关系:
 libxml2-dev : 依赖: libxml2 (= 2.9.1+dfsg1-3ubuntu4.13) 但是 2.9.3+dfsg1-1ubuntu0.7 正要被安装
 libxslt1-dev : 依赖: libxslt1.1 (= 1.1.28-2ubuntu0.2) 但是 1.1.28-2.1ubuntu0.3 正要被安装
 python3-dev : 依赖: python3 (= 3.4.0-0ubuntu2) 但是 3.5.1-3 正要被安装
               依赖: libpython3-dev (= 3.4.0-0ubuntu2) 但是它将不会被安装
               依赖: python3.4-dev (>= 3.4.0-0~) 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。

解决方案
往 /etc/apt/sources.list 文件中像下面这样添加一行:

deb http://security.ubuntu.com/ubuntu xenial-security main 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值