The following error occurred while trying to add or remove files in the installation directory: [Errno 13] Permission denied: '/usr/local/lib/python2.6/dist-packages/test-easy-install-20294.pth' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.6/dist-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: http://peak.telecommunity.com/EasyInstall.html Please make the appropriate changes for your system and try again.
如何更改目录?或者我如何进行更改以使其接受根目录中的更改?
答案 0 :(得分:0)
最简单的方法是使用管理员权限运行命令。看起来你正在使用某种形式的Linux。在Ubuntu或类似的地方,使用:
sudo easy_install <package>
否则,您可以使用选项:
easy_install -d /home/<username>/wherever <package>
然后你需要确保该目录进入你的PYTHONPATH。