If you cannot (or do not want to) install the module under / usr due to various reasons
export PYTHONUSERBASE=Directory you want to install
pip install package name--user
--user: Install to user environment. The default is installed under ~ / .local
If you set the PYTHONUSERBASE environment variable, it will add the $ {PYTHONUSERBASE} / lib / python [ver] / site-packages directory to the module search path when the program is executed.