权限被拒绝 Setuptools

Permission denied Setuptools

我正在尝试在我的 Mac 中安装 setuptools,但是当我 运行 命令 curl https://bootstrap.pypa.io/ez_setup.py -o - | python 显示一条消息时:

   Processing setuptools-17.1.1-py3.4.egg
   Removing /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/setuptools-17.1.1-py3.4.egg
   Copying setuptools-17.1.1-py3.4.egg to /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages
   Adding setuptools 17.1.1 to easy-install.pth file error: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/easy-install.pth'
   Something went wrong during the installation.
   See the error message above.

您将需要 运行 作为 root,使用 sudo。这应该是可搜索的。 :)

另见:

您需要 sudo 以便 python 命令写入 /Library/Frameworks...:

curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo  python