Unable to install python twint package under MacOS Catalina

1.1k Views Asked by At

I want to install pip3 install twint but I get the error:

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?

2

There are 2 best solutions below

0
On

as suggested by pip, use --user: python3 -m pip install --user twint

it will install your package in your home (https://pip.pypa.io/en/stable/user_guide/#user-installs)

as a better alternative, you can look into virtual environments

0
On

Try installing this using the Anaconda Navigator cmd. The installation did not work in Jupyter Notebook, but it did work in Anaconda Navigator cmd.