韩漫免费漫画在线观看方法,《好好疼爱里面》免费看,年轻漂亮的女士护士内衣,妈妈醉酒后把我当爸爸电视剧

文章 > Python常见问题 > python中dev安装失败怎么办

python中dev安装失败怎么办

Python

头像

silencement

2020-02-27 17:03:464292浏览 · 0收藏 · 0评论

安装tensorflow之前需要先安装python—dev, 这个不能用pip install来安装,只能用sudo apt-get install来安装。安装后会发现还要

先装另外两个东西,但是装这两个东西也还要继续装其他东西,相当麻烦且并没有成功

~$ sudo 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.11-1) but it is not going to be installed
              Depends: python2.7-dev (>= 2.7.11-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

用aptitude 工具可以搞定

先:sudo apt-get install aptitude 

然后:

sudo aptitude install python-dev,之后会出现:

sudo aptitude install python-dev
The following NEW packages will be installed:
  libexpat1-dev{ab} libpython-dev{a} libpython2.7-dev{ab} python-dev 
  python2.7-dev{ab} 
packages upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
Need to get 28.1 MB of archives. After unpacking 42.1 MB will be used.
The following packages have unmet dependencies:
 python2.7-dev : Depends: python2.7 (= 2.7.11-2) but 2.7.12-1ubuntu0~16.04.1 is installed.
                 Depends: libpython2.7 (= 2.7.11-2) but 2.7.12-1ubuntu0~16.04.1 is installed.
 libexpat1-dev : Depends: libexpat1 (= 2.1.0-7) but 2.1.0-7ubuntu0.16.04.2 is installed.
 libpython2.7-dev : Depends: libpython2.7-stdlib (= 2.7.11-2) but 2.7.12-1ubuntu0~16.04.1 is installed.
                    Depends: libpython2.7 (= 2.7.11-2) but 2.7.12-1ubuntu0~16.04.1 is installed.
open: 24; closed: 106; defer: 16; conflict: 21                                 .The following actions will resolve 
these dependencies:

     Keep the following packages at their current version:
1)     libexpat1-dev [Not Installed]                      
2)     libpython-dev [Not Installed]                      
3)     libpython2.7-dev [Not Installed]                   
4)     python-dev [Not Installed]                         
5)     python2.7-dev [Not Installed]                      



Accept this solution? [Y/n/q/?] n        这里一定要n,因为给的solution是保持现在的状态,即不安装
The following actions will resolve these dependencies:

     Downgrade the following packages:                                          
1)     libexpat1 [2.1.0-7ubuntu0.16.04.2 (now) -> 2.1.0-7 (xenial)]             
2)     libpython2.7 [2.7.12-1ubuntu0~16.04.1 (now) -> 2.7.11-2 (xenial)]        
3)     libpython2.7-minimal [2.7.12-1ubuntu0~16.04.1 (now) -> 2.7.11-2 (xenial)]
4)     libpython2.7-stdlib [2.7.12-1ubuntu0~16.04.1 (now) -> 2.7.11-2 (xenial)] 
5)     python2.7 [2.7.12-1ubuntu0~16.04.1 (now) -> 2.7.11-2 (xenial)]           
6)     python2.7-minimal [2.7.12-1ubuntu0~16.04.1 (now) -> 2.7.11-2 (xenial)]   



Accept this solution? [Y/n/q/?] y     接受新状态就可以安装了
关注

关注公众号,随时随地在线学习

本教程部分素材来源于网络,版权问题联系站长!

小洞流口水了 是不是饿了| 乳首やほっちやんねん的读音 | 乳色吐息| 日本《暴力强伦轩》 | 粗大挺进亲女小雅小流| 真人做爰高潮30分钟| 粗大的蘑菇头刮得又红又肿怎么办 | 丰满的儿女小月的身世与背景介绍| 女性穿裤子阴沟凸起是咋回事| 成品PPT网站大片入口| 美味的小瘦子3| 妈妈装睡配合孩子阴阳调和| 女性扒开大腿内侧小肚子痒| 淑婷在公室被躁到高潮观看| 《开裆裤》法国1980年 | 闺蜜老公把我压在怀里| 《交换做爰》在线观看| 蜜桃成熟3D| 扌雷辶鬲的小说章节| 东北老肥熟口味重的原因分析 | 老公每天晚上吃奶对身体有伤害吗| 她开始慢慢迎合刘小刚是什么歌| 妈妈叫我戴上避孕套是什么歌| 韩国电影表妹2现在改名| 40岁女人如饥似渴最佳解决方法| 朋友的妈妈7中字谜| 享乐网| 免费观看B站刺激战场2023| 法国满天星《太太们》| 苍井空《办公室爱欲》| 《公的浮之手中字》免费| 指尖搅动我的心弦| YSL千人千色T9T9T9T9...| 40岁女人如饥似渴最佳解决方法| 两男一女一起做运动什么心理 | 妈妈你真棒里面的插曲叫什么 | 少年阿兵全集| 开会桌下把荫蒂添的好多水| 小寡妇在线观看免费播放电视剧| 爸爸吃女儿奶奶高情商回复| 免费观看已满十八岁的电视剧大全