安装TensorFlow出现Permission denied问题

近日在ubuntu上安装TensorFlow
由于有两个版本的python,所以使用一下语句安装:

python3 -m pip install tensorflow

但是安装失败,出现下列提示:

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/markdown'
Consider using the `--user` option or check the permissions.

按照提示修改为:

python3 -m pip install --upgrade tensorflow --user

安装成功:

Successfully installed absl-...

你可能感兴趣的:(python)