解决: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