No virtual environment
pip is installed in the system directory by default and requires root access (such as /usr/local/lib/python3.4)
and using --user will be installed in the home directory (/Users/luoqi/.local/lib), no special Authority
Use virtual environment
Using the -user option in a virtual environment will also install it in the local user directory, which is the same as if the virtual environment is not installed.
Python in the virtual environment cannot get the package installed by system or user. So the -user option is invalid in a virtual environment.
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] 权限不够: ‘REQUESTED’
When installing the package in a virtual environment, if the above problems occur, the --user
option is recommended . Do not use the user option at this time.
Check whether the virtual environment is created with root, which will cause the address of the virtual environment to be unable to be written.
Execute 777 on the address, that is, everyone has read, write and execute permissions.
chmod 777 -R /data/ieg/bkdata/venv/aiops_api-ci/
Refer to
https://blog.csdn.net/haydenwang8287/article/details/1753883
https://www.itranslater.com/qa/details/2132665202066850816