У меня возникли проблемы с установкой SUDS в python 2.6.4. Я попытался установить установочный файл, но он говорит, что местоположение python не может быть найдено. Это связано с тем, что я изменил местоположение python. Я попытался использовать easy_install, но мне не повезло. Кто-нибудь знает простой способ сделать это или иметь ссылку для очистки инструкций по установке.Установка SUDS в python 2.6.4
командования, что я вошел было:
python setup.py install
В результате я получил был:
running install
error: cannot 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: '/usr/local/lib/python2.6/site-packages/test-easy-install-9203.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python2.6/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:
http://peak.telecommunity.com/EasyInstall.html
И если я должен изменить питон путь, как именно вы это делаете.
Я попробовал то, что один сайт сказал, чтобы сделать, и это было первое, создать файл altinstall.pth в каталоге сайта-пакеты Питона, содержащий следующую строку:
import os, site; site.addsitedir(os.path.expanduser('~/lib/python2.3'))
Затем он говорит изменить Distutils. CFG в каталоге Distutils с:
[install]
install_lib = ~/lib/python2.3
# This next line is optional but often quite useful; it directs EasyInstall
# and the distutils to install scripts in the user's "bin" directory. For
# Mac OS X framework Python builds, you should use /usr/local/bin instead,
# because neither ~/bin nor the default script installation location are on
# the system PATH.
#
install_scripts = ~/bin
Нам нужна дополнительная информация, например, на какой платформе вы находитесь, какие именно точные команды пытались, были указаны точные ошибки и т. Д. –
@gruszczy Спасибо, я не знаю, почему я не переключился на суперпользователя. Я думал, что это путь, вызывающий проблему. Немного глупо, спасибо за помощь – chrissygormley
N/p. Помните, что если вы используете easy_install, вам тоже нужно быть супер. Счастливый взлом с пеной :-) – gruszczy