RROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/pymongo-3.10.0.dist-info'

臭大佬 2019-12-20 12:46:14 2498
Python 
简介 ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/pymongo-3.10.0.dist-info' Consider using the `--user` option or check the permissions.

pip在安装包的时候提示:

pip install pymongo

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/usr/local/lib/python3.5/dist-packages/pymongo-3.10.0.dist-info’
Consider using the --user option or check the permissions.

解决方案

pip install pymongo --user

不知道为什么,先做个笔记.