我正在尝试将setuptools升级到18.5或更高版本,以便我可以安装这些库:html5lib,lxml,lxml.cssselect,&要求。因此,我试图通过输入以下内容来执行此操作:
命令行中curl https://bootstrap.pypa.io/ez_setup.py -o - | python
。但是,这给了我以下错误。我正在使用Mac OSX ..
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12402 100 12402 0 0 49481 0 --:--:-- --:--:-- --:--:-- 49608
Extracting in /var/folders/wt/9y2d_zh12r98sn0416p0yjs00000gn/T/tmpvS6bWN
Now working in /var/folders/wt/9y2d_zh12r98sn0416p0yjs00000gn/T/tmpvS6bWN/setuptools-27.3.0
Installing Setuptools
running install
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-17438.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/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. 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.
For information on other options, you may wish to consult the
documentation at:
https://setuptools.readthedocs.io/en/latest/easy_install.html
Please make the appropriate changes for your system and try again.
Something went wrong during the installation.
See the error message above.
任何帮助将不胜感激!谢谢