当 Codespeak.net 关闭时安装 lxml
Codespeak.net 是 向下以及一些东西,在我的构建中的某个地方想要easy_install < a href="http://webcache.googleusercontent.com/search?q=cache:hZfwWz3fA_AJ:codespeak.net/lxml/+lxml" rel="nofollow noreferrer">lxml 来自它,尽管我用pip,已安装它并将其从我的构建文件中删除。
我还能怎样解决这个问题?
Codespeak.net is down and something, somewhere in my buildout wants to easy_install lxml from it, despite me boopstrapping with pip, having it installed already and removing it from my buildout files.
How else can I get round this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
第一种方法是查看您的构建目录:其中可能有一个 Egg/ 子目录。将现有的 lxml Egg 放入该目录中,构建应该会拾取它。
第二种稍微更持久的方法是告诉构建使用缓存目录。在您的主目录中,创建一个“.buildout”目录,其中包含“default.cfg”:
同时创建这些 Eggs/downloads/configs 子目录。现在,您可以将现有的 lxml Egg 放入 Eggs/ 目录中,并且 buildout 应该将其拾取。
A first way is to look at your buildout directory: you probably have an eggs/ subdirectory in there. Put your existing lxml egg in that directory and buildout should pick it up.
A second, slightly more permanent, way is to tell buildout to use a cache directory. In your home dir, make a ".buildout" directory with a "default.cfg" in it:
Also create those eggs/downloads/configs subdirectories. Now you can place your existing lxml egg in that eggs/ directory and buildout should pick it up.
感谢赖因特的帮助。我已按照您的建议更改了 .buildout 以使用下载缓存。问题是我当前的非常新的开发系统上没有那个鸡蛋:(
我的解决方法如下:
例如。 ~/instances/[my_instance]/bin/python setup.py install
到目前为止,我已经启动并运行,但希望 codespeak 能尽快回来,这样我就可以得到鸡蛋并按照您的建议进行缓存操作。
Thanks for the help Reinout. I have changed my .buildout to use the download cache as you suggested. Problem was that I did not have that egg on my current, very new, dev system :(
My work around looks like this:
eg. ~/instances/[my_instance]/bin/python setup.py install
So far I am up and running, but hoping codespeak will come back soon so I can get the egg and do the caching thing like you suggested.