Just encountered this error. Looks like they are trying to prevent people from breaking python. Best practice is to use a virtual environment to install packages. To do this cd to the dir you would like to install your virtual environment I usually put it in the dir of the tool I am installing packages for. Next run
Code:
virtualenv -p {PYTHON VERSION} {NAME OF VIRTUAL ENVIRONMENT}
. Next run
Code:
source {NAME OF VIRTUAL ENVIRONMENT}/bin/activate
. After that you can proceed use pip. To exit the virtual environment simply run `deactivate`. Below is a quick command to copy and paste:
Code:
virtualenv -p python3 venv; source venv/bin/activate