安装tensorflow和keras时获取权限被拒绝错误
Getting permission denied error while installing tensorflow and keras
按照我之前提出的问题 中的步骤进行操作后
我在安装 tensorflow
时遇到权限被拒绝的错误
如何安装 tensorflow 和 keras 而不会出现此错误?
pip3 正在尝试访问您需要超级用户权限的 /usr/bin/
。尝试
sudo pip3 install --upgrade ...
看来 TensorFlow 依赖的 setuptools
软件包版本比您安装的更新。如, pip
needs root access to upgrade setuptools
and install TensorFlow and Keras in your machine's Python distribution. You can either use sudo
as he suggests, or it may be safer to install TensorFlow into a Virtualenv。例如在目录~/tensorflow
下创建一个Virtualenv,执行如下命令:
$ sudo pip install virtualenv
$ virtualenv --system-site-packages ~/tensorflow
$ cd ~/tensorflow
$ source bin/activate
$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.0-cp27-none-linux_x86_64.whl
按照我之前提出的问题
如何安装 tensorflow 和 keras 而不会出现此错误?
pip3 正在尝试访问您需要超级用户权限的 /usr/bin/
。尝试
sudo pip3 install --upgrade ...
看来 TensorFlow 依赖的 setuptools
软件包版本比您安装的更新。如pip
needs root access to upgrade setuptools
and install TensorFlow and Keras in your machine's Python distribution. You can either use sudo
as he suggests, or it may be safer to install TensorFlow into a Virtualenv。例如在目录~/tensorflow
下创建一个Virtualenv,执行如下命令:
$ sudo pip install virtualenv
$ virtualenv --system-site-packages ~/tensorflow
$ cd ~/tensorflow
$ source bin/activate
$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.0-cp27-none-linux_x86_64.whl