【发布时间】:2020-09-05 19:12:17
【问题描述】:
我想安装 pip3 install twint 但出现错误:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/3.8'
Consider using the `--user` option or check the permissions.
我需要输入什么命令才能在我的用户选项下安装它?
会是python -m pip3 install twint吗?
【问题讨论】:
-
以管理员身份运行,如果您在 Mac 上,则以 sudo 为前缀
-
不清楚你是如何安装python3的,但是/Library需要提升权限
-
sudo是解决方案,因为它允许您做一些您可能不应该做的事情。如果有任何 system 工具需要twint,它会随系统一起提供或作为 Apple 的更新推送。不要修改系统安装,因为你需要一个特定的模块。 -
我添加了标签macos、macos-catalina、installation。对于大多数 MacOS 问题,还请查看以前版本的解决方案。
标签: python macos installation macos-catalina twint