【问题标题】:Permission denied Setuptools权限被拒绝
【发布时间】:2015-08-30 21:29:09
【问题描述】:

我正在尝试在我的 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.

【问题讨论】:

    标签: python django curl setuptools


    【解决方案1】:

    您需要sudo 才能让python 命令写入/Library/Frameworks...

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

    【讨论】:

      【解决方案2】:

      您需要以 root 身份运行,使用 sudo。这应该是可搜索的。 :)

      另见:

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-07-19
        • 2018-02-05
        • 2015-04-28
        • 2018-02-03
        • 2012-04-14
        • 2020-11-05
        相关资源
        最近更新 更多