简体   繁体   English

MacOS Catalina下无法安装python twint包

[英]Unable to install python twint package under MacOS Catalina

I want to install pip3 install twint but I get the error:我想安装 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.

what command do i need to type to install it under my user option?我需要输入什么命令才能在我的用户选项下安装它? would it be python -m pip3 install twint ?会是python -m pip3 install twint吗?

as suggested by pip, use --user : python3 -m pip install --user twint根据 pip 的建议,使用--userpython3 -m pip install --user twint

it will install your package in your home ( https://pip.pypa.io/en/stable/user_guide/#user-installs )它会将您的软件包安装在您的家中( https://pip.pypa.io/en/stable/user_guide/#user-installs

as a better alternative, you can look into virtual environments作为更好的选择,您可以查看虚拟环境

Try installing this using the Anaconda Navigator cmd.尝试使用 Anaconda Navigator cmd 安装它。 The installation did not work in Jupyter Notebook, but it did work in Anaconda Navigator cmd.安装在 Jupyter Notebook 中不起作用,但在 Anaconda Navigator cmd 中确实有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM