'Unable to install python twint package under MacOS Catalina

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?



Solution 1:[1]

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

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 OneCricketeer
Solution 2 Zane Cantrell