--User using parameters, i.e.,
pip install --user package_name
This will install the package Python $ HOME / .local of the path, wherein the folder comprises three words: bin , lib and Share .
Then modify the .bash_profile file makes $ HOME / .local bin / directory procedures added to the environment variable
export PATH=$HOME/.local/bin:$PATH
Reference link: http: //blog.sciencenet.cn/blog-656335-1038255.html