0

相互サーバーで python ./bootstrap.py を呼び出すと、このエラーが発生します Traceback (most recent call last): File "./bootstrap.py", line 74, in ws.require('zc.buildout') File "/ usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py"、666 行目、require 内

ファイル「/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py」、行 569、解決 plugin_projects = list(plugin_env) pkg_resources.VersionConflict: (setuptools 0.6c11 (/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg), Requirement.parse('setuptools>=0.7')) 自分のコンピューターで同じことをすると、正常に動作しています。

この前に私がした:

easy_install --install-dir ~/download fez.djangoskel paster create -t​​ django_buildout xxxxxxxx

何が問題なのか誰にもわかりませんか?

ありがとう

4

1 に答える 1

1

Like said in a comment it seems that your system-wide version of 0.6c11 and bootstrap.py reqiures setuptools >= 0.7. Because messing with global packages is usually bad idea I would recommend using virtualenve and virtualevnwrapperfor development and installing all requirements inside virtual environments. On Linux systems both can be easily installed using package managers. On Debian (and probably Ubuntu)

apt-get install python-virtualenv
apt-get install python-virtualenv

After installing all have to do is:

mkvirtualenv bar
pip install setuptools>=0.7

Then install all other packages that you need and you are ready to go.

UPDATE

If you don't have root access virtualenv can be easily installed locally. See this How to install virtualenv without using sudo? for details.

于 2013-09-06T22:44:05.363 に答える