Ubuntu 14.04-64bit安装pip遇到的问题及tensorflow的安装
2016-12-08 18:52
441 查看
问题
欲使用命令:pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensor flow-0.5.0-cp27-none-linux_x86_64.whl安装tensorflow时,在安装pip的步骤中,使用命令: sudo apt-get install python-pip安装pip出现如下错误: The following packages have unmet dependencies: python-pip : Depends: python-pip-whl (= 1.5.4-1ubuntu3) but it is not going to be installed Recommends: python-dev-all (>= 2.6) but it is not installable E: Unable to correct problems, you have held broken packages.
解决方法
1、 sudo apt-get update 2、sudo apt-get upgrade 3、sudo apt-get install python-setuptools python-dev build-essential 4、sudo easy_install pip 5、最后使用命令:pip install https://storage.googleapis.com/tensorflow/linux/cpu/ tensorflow-0.5.0-cp27-none-linux_x86_64.whl即可安装成功
测试代码及结果
打开一个 python 终端: $ python >>> import tensorflow as tf >>> hello = tf.constant('Hello, TensorFlow!') >>> sess = tf.Session() >>> print sess.run(hello) Hello, TensorFlow! >>> a = tf.constant(10) >>> b = tf.constant(32) >>> print sess.run(a+b) 42 >>>
相关文章推荐
- Ubuntu pip安装tensorflow遇到的问题
- 在ubuntu 14.04 64bit上安装rails遇到的一些gem问题
- Ubuntu14.04安装之后遇到的问题解决方案
- Thinkpad E440安装Ubuntu 14.04遇到的问题
- ubuntu 14.04 ROS + kinect v2 driver安装方法;安装驱动时遇到的问题及解决方法(1)
- ubuntu14.04下安装反向代理工具nginx遇到的问题
- ubuntu14.04安装DevStack与遇到的的问题记录
- Ubuntu 14.04 64bit 安装tensorflow(GPU版本)
- google安装于ubuntu14.04 64bit问题
- ubuntu 14.04 安装 pip出现包依赖问题(This may mean that you have requested an impossible situation or ifyou ar
- 安装ubuntu14.04遇到网卡驱动不成功问题
- ubuntu14.04 虚拟机安装opencv2.4.10,make遇到的问题
- ubuntu14.04安装opencv3.0遇到的问题
- Ubuntu LTS14.04 安装Drush, drupal, omega subtheme遇到的问题
- [计算机视觉][ARM-Linux开发] Ubuntu14.04安装OpenCV3.2中遇到的问题的解决方案
- 在ubuntu14.04上安装cuda时会遇到的几个问题
- ubuntu 14.04 安装opencv3 过程以及遇到的问题
- pandaboard安装ubuntu14.04系统遇到的问题
- ubuntu14.04在虚拟环境中安装flask遇到的问题
- ubuntu 14.04 ROS + kinect v2 driver安装方法;安装驱动时遇到的问题及解决方法(2)