我正在尝试在Ubuntu 9.10 32位客户机上安装Satchmo 0.9,请访问http://bitbucket.org/chris1610/satchmo/downloads/Satchmo.pdf 。 我在2.1.2遇到困难:
pip install -r http://bitbucket.org/chris1610/satchmo/raw/tip/scripts/requirements.txt pip install -e hg+http://bitbucket.org/chris1610/satchmo/@v0.9#egg=satchmo
第一个命令失败,因为编译错误,试图build立PIL。 所以我运行了“aptitude install python-imaging”,在本地复制了第一行的requirements.text,并删除了尝试构buildPIL失败的那一行。 第一行完成没有报告错误,第二行也是如此。
下一步告诉我将目录切换到/ path / to / new / store,然后运行:
python clonesatchmo.py
这里有一点麻烦 我被告知现在clonesatchmo.py会在/ bin中,而且不在那里,但是我在/ usr / local下面放了一些Satchmo的东西,在/ bin中创build一个符号链接,然后运行:
python /bin/clonesatchmo.py
这给了:
jonathan@ubuntu:~/store$ python /bin/clonesatchmo.py Creating the Satchmo Application Traceback (most recent call last): File "/bin/clonesatchmo.py", line 108, in <module> create_satchmo_site(opts.site_name) File "/bin/clonesatchmo.py", line 47, in create_satchmo_site import satchmo_skeleton ImportError: No module named satchmo_skeleton
明显检查后,find存储库后发现,有没有像我的系统上的satchmo 骨架名称的文件。 我以为bash可能会把第二个pip调用的URL作为注释的开始; 我试了两个:
pip install -e hg+http://bitbucket.org/chris1610/satchmo/@v0.9\#egg=satchmo pip install -e hg+http://bitbucket.org/chris1610/satchmo/@v0.9#egg=satchmo
这两种方式似乎都没有考虑到上面提到的import错误。
我如何在Ubuntu下获得Satchmo安装,或者至less可以使用Satchmo安装,我可以从商店的骨架开始,然后以我想要的方式充实它。
当我尝试Satchmo时,我遇到了同样的问题。 一些邮件列表狩猎出现了包装问题。 目录不能正确复制。
http://www.mail-archive.com/[email protected]/msg03905.html
您只需要将该目录复制到您的satchmo site-packages位置,并且它应该将它放在sys.path中。