简体   繁体   English

Errno 13 权限被拒绝:'/Library/Python/2.7/site-packages/test-easy-install-18954.pth'

[英]Errno 13 Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-18954.pth'

I've downloaded python 3.6.1 and I'm trying to use terminal to setup beautifulsoup4 but it keeps trying to install on python 2.7.我已经下载了 python 3.6.1,我正在尝试使用终端来设置beautifulsoup4,但它一直试图在 python 2.7 上安装。 Any help?有什么帮助吗?

Jakes-iMac:beautifulsoup4-4.5.3 Jake$ cd /Users/Jake/Downloads/beautifulsoup4-4.5.3 Jakes-iMac:beautifulsoup4-4.5.3 Jake$ python setup.py install running install Jakes-iMac:beautifulsoup4-4.5.3 Jake$ cd /Users/Jake/Downloads/beautifulsoup4-4.5.3 Jakes-iMac:beautifulsoup4-4.5.3 Jake$ python setup.py install running install

Checking .pth file support in /Library/Python/2.7/site-packages/检查/Library/Python/2.7/site-packages/ .pth 文件支持

error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the installation directory:尝试添加或删除安装目录中的文件时出现以下错误:

 [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-18954.pth'

The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:您指定的安装目录(通过 --install-dir、--prefix 或 distutils 默认设置)是:

/Library/Python/2.7/site-packages/

Perhaps your account does not have write access to this directory?也许您的帐户没有对该目录的写访问权限? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account.如果安装目录是系统拥有的目录,您可能需要以管理员或“root”帐户登录。 If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable.如果您没有对这台机器的管理访问权限,您可能希望选择不同的安装目录,最好是在您的 PYTHONPATH 环境变量中列出的目录。

For information on other options, you may wish to consult the documentation at:有关其他选项的信息,您可能希望查阅以下文档:

https://pythonhosted.org/setuptools/easy_install.html https://pythonhosted.org/setuptools/easy_install.html

Please make the appropriate changes for your system and try again请对您的系统进行适当的更改,然后重试

默认情况下,在终端中运行“python”命令将在许多系统上运行 Python 2,即使您已经安装了 Python 3。请尝试改用“python3”命令。

尝试这个:

sudo python setup.py install

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我尝试安装virtualenv时导致此错误的原因是什么? IOError:[Errno 13]权限被拒绝:'/ Library /Python/2.7/site-packages/virtualenv.py' - What's causing this error when I try and install virtualenv? IOError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/virtualenv.py' 安装python settuptools时发生错误-没有这样的文件或目录:'/usr/local/lib/python2.7/site-packages/test-easy-install-8811.pth' - Error when installing python settuptools - No such file or directory: '/usr/local/lib/python2.7/site-packages/test-easy-install-8811.pth' “PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.5/site-packages'” 安装 Django - “PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.5/site-packages'” installing Django 在Mac OS上安装pip错误-权限被拒绝:“ / Library / Python / 2.7 / site-packages / pip” - Installing pip on Mac OS error - Permission denied: '/Library/Python/2.7/site-packages/pip' 错误:无法创建'/Library/Python/2.7/site-packages/xlrd':权限被拒绝 - error: could not create '/Library/Python/2.7/site-packages/xlrd': Permission denied PermissionError: [Errno 13] 权限被拒绝:'C:\\\\Program Files\\\\Python35\\\\Lib\\\\site-packages\\\\six.py' - PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\Python35\\Lib\\site-packages\\six.py' “/lib/python2.7/site-packages/不支持.pth文件”在MacOS上安装pip - “/lib/python2.7/site-packages/ does NOT support .pth files” installing pip on MacOS 自制Python并写入/Library/Python/2.7/site-packages/? - Homebrew Python and writing to /Library/Python/2.7/site-packages/? 如何为本地Python 2.7安装设置site-packages目录 - How to set site-packages directory for local Python 2.7 install 它显示“[Errno 13]权限被拒绝:'/ usr / lib / python2.7 / did-packages / Jinja2-2.8.egg-info / entry_points.txt'”当试图安装烧瓶时? - It shows “ [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/Jinja2-2.8.egg-info/entry_points.txt'” when trying to install flask?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM