解决:ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘RECO

解决:ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘RECORD’

Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 21.0.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.

设备描述

本设备是Mac book Air
版本 Macos Big sur 11.2.3
已将终端的Python更新至Python3.8
用pip安装myqr 出现问题

遇到问题

设备报出上面的错误:

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘RECORD’
Consider using the --user option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 21.0.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.

在终端输入:pip install --upgrade pip
还是出现问题,好像是找不到指令还是什么
试了很多网上其他的指令,问题依然出现问题

解决方法

1.要注意错误的类型,不能瞎搜。
我看有的终端报出的错误是:
[Errno 13] Permission denied: xx/ xxxx/ xx/ xxx
(总之是路径2.7或者3.7、3.8什么的,跟本次要解决的错误还不太一样)
2.本次终端报出的错误是:
[Errno 13] Permission denied: ‘RECORD’
record ,是record!!! 我最后找到的解决方案说 这是因为设备权限问题。
3.上面是认识,现在开始解决方案。 在终端输入:

pip3 install --upgrade pip --user

如果上面的指令不行,输入下面的试试哈:

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

最后提示:
Successfully installed pip-21.0.1 表示安装成功。祝你顺利!
最后上图:
在这里插入图片描述

参考链接:
https://bibichuan.github.io/posts/7baf9874.html

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值