Python 2.6.4にSUDSをインストールするのに本当に問題があります。セットアップ ファイルをインストールしようとしましたが、python の場所が見つからないと表示されます。これは、python の場所を変更したためです。easy_install を使用しようとしましたが、うまくいきません。これを行う簡単な方法を知っている人や、インストール手順を明確にするためのリンクを持っている人はいますか?
私が入力したコマンドは次のとおりです。
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
そして、Python パスを変更する必要がある場合は、どのように正確にこれを行うのですか?
あるサイトが言ったことを試してみましたが、最初に、次の行を含む altinstall.pth ファイルを Python の site-packages ディレクトリに作成しました。
import os, site; site.addsitedir(os.path.expanduser('~/lib/python2.3'))
次に、distutils ディレクトリの distutils.cfg を次のように変更します。
[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