Ubuntu遇到问题“Could not install packages due to an EnvironmentError: [Errno 13] 权限不够: ”

Ubuntu在使用一些pip的时候会遇到:“Could not install packages due to an EnvironmentError: [Errno 13] 权限不够:”的问题。

在正常的命令后面加一个 --user即可:

在使用pip的相关命令时,使用国内源的速度更快:如下是使用了清华的国内源。

pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ --user

这样会将Python 程序包安装到 $HOME/.local 路径下,其中包含三个字文件夹:bin,lib 和 share。
如果是配置了pip镜像源文件,则使用下面的命令:

原文地址:https://www.cnblogs.com/xinmomoyan/p/10386151.html

时间: 2024-08-30 14:30:10

Ubuntu遇到问题“Could not install packages due to an EnvironmentError: [Errno 13] 权限不够: ”的相关文章

[已解决]报错: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/mac/Ana

报错代码: pip3 install gerapy 报错内容: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/mac/Ana 解决: sudo pip3 install gerapy [已解决]报错: Could not install packages due to an EnvironmentError: [Errno 13] Permission de

【pip 安装TensorFlow 】 Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。:

[报错] Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问.:'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-uninstall-6z7keac8\\program files\\anaconda3\\lib\\site-packages\\numpy\\core\\multiarray.cp35-win_amd64.pyd'Consider using

[Python配置]执行pip install出现Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。的解决方案

想对pip进行update. 此时我的pip版本可用pip --version或者pip -V查看. 一般的解决方案是: python -m pip install -U pip python -m pip install --upgrade pip 如果出现以下问题 则是因为响应超时,可以换源update: python -m pip install --upgrade pip -i https://pypi.douban.com/simple 如果出现以下问题:Could not insta

【tensorflow】在 Ubuntu/Linux 环境下安装TF遇到的问题 [Errno 13] Permission denied

环境:Ubuntu虚拟机 / python2.7 按照官网安装: $ pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl 提示:Could not install packages due to an Environment Error: [Errno 13] Permission denied: “...balabal” 解决方案:

Linux(Ubuntu)使用 sudo apt-get install 命令安装软件的目录在哪?(已解决)

Linux(Ubuntu)使用   sudo apt-get install  命令安装软件的目录在哪? bin文件路径: /usr/bin 库文件路径: /usr/lib/  其它的图标啊什么的路径: /usr/share 配置文件路径: /etc/

Ubuntu Touch On Nexus4 Manual Install (手动安装) under Gentoo

Table of Contents 1. 准备工作: 2. Saucy Salamander 3. 刷入 最新 版Touch 最近手里的 Nexus 4 手机一直闲置,它的配置要比我六年前买的笔记本还好,于是就动起了向里面刷个 Ubuntu Touch 的想法. 1 准备工作: 安装 Adb tools, google 一下即可. 开启开发者模式. 终端执行 "adb reboot bootloader" 进入 fastboot 终端执行 "fastboot oem unlo

ubuntu 装tensorflow出现 conda install ERROR missing write permission错误

通过搜索tensorflow然后运行,例如:$ conda install --channel https://conda.anaconda.org/jjh_cio_testing tensorflow-gpu==1.3.0 报错: CondaIOError: Missing write permissions in: /usr/local/anaconda3## You don't appear to have the necessary permissions to install pack

ubuntu 更新源 或者 apt-get install 出错404 not found ,Failed to fetch

1.考虑是不是能上网 2.用apt-get update ,然后再试试apt-get install 如果apt-get update 也出现很多 404 not found 或者 failed to fetch ,就要考虑更换自己的源,百度搜 /etc/apt/sources.list 3.如果还不行,估计是Ubuntu版本太老了,没有维护的了. 比如我用11.04,sudo apt-get install open-vm-dkms 不行,sudo apt-get  update  不行,就死

sublime text install packages报错

汉化版的sublime text安装软件包的时候报错如下: There are no packages available for install 打开控制台,ctrl+~,然后看到如下错误: Package Control: Channel http://www.anchen8.net/channel.php does not appear to be a valid channel file because the "schema_version" is not a valid n