Linux安装程序时出现错误 Could not install packages due to an EnvironmentError: [Errno 13]

今天在升级pip和安装gensim时都报了这个错误:

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/home/train04/anaconda3/envs/tensorflow_gpu-1.4.0/lib/python3.5/site-packages/boto-2.49.0.dist-info'
Consider using the `--user` option or check the permissions

按照提示,在命令中添加--user即可,注意有两个连字符-
比如升级pip的命令变为:pip install --user --upgrade pip

你可能感兴趣的:(Linux)