我想我的Mac上的Python和/或pip有一些问题。我已经在全球安装了Python2.7,然后我通常设置virtualenvs并安装Python3.6.4,但在最后一天左右,我遇到了诸如Fabric和SSH2之类的包的问题,在这些包中,我要么无法安装它们,要么在尝试导入包时遇到了Fabric抛出的各种错误。
我现在正试图删除Fabric并安装Fabric3及其抛出错误,如下所示:Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Users/david/Documents/projects/uptimeapp/env/lib/python3.6/site-packages/Fabric3-1.14.post1.dist-info'
Consider using the `--user` option or check the permissions.
(env) Davids-MacBook-Air:uptimeapp david$ pip install fabric3 --user
Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
如果我这样做sudo pip install fabric,则它会安装,但会出现以下警告:The directory '/Users/david/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the per