Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 ubuntu,python 的新手。
我尝试使用此链接安装 pymongo
得到这个错误..
error: could not create '/usr/local/lib/python2.7/dist-packages/pymongo': Permission denied
怎么改。。
显然,您需要 root 权限才能进行此安装。
选项:
使用 sudo 或 root 帐户安装 pymongo
使用 virtualenv 创建一个 Python 沙箱,您可以在其中安装任意模块而无需 root 权限