Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Grok DistributionNotFound:grokcore.startup_Python_Linux_Paster_Grok - Fatal编程技术网

Python Grok DistributionNotFound:grokcore.startup

Python Grok DistributionNotFound:grokcore.startup,python,linux,paster,grok,Python,Linux,Paster,Grok,使用grok主页教程中的grokproject示例,同时创建新项目并安装grok框架 cd-Sample然后像教程中一样运行bin/paster-service-parts/etc/deploy.ini并返回DistributionNotFound:grokcore.startup错误 回溯@ 一个有根据的猜测告诉我grok包没有安装grokproject命令 使用Gentoo Linux。出现此错误是因为我从原始安装目录中移动了项目。显然,我找不到位置相关的配置设置 在新目录中从头开始创建新项

使用grok主页教程中的
grokproject示例
,同时创建新项目并安装grok框架

cd-Sample
然后像教程中一样运行
bin/paster-service-parts/etc/deploy.ini
并返回
DistributionNotFound:grokcore.startup
错误

回溯@

一个有根据的猜测告诉我grok包没有安装grokproject命令


使用Gentoo Linux。

出现此错误是因为我从原始安装目录中移动了项目。显然,我找不到位置相关的配置设置


在新目录中从头开始创建新项目解决了问题。

通常,当您移动项目时,运行

$ python bootstrap.py
$ ./bin/buildout
在新位置中,应重新生成脚本和配置文件中的所有本地路径。如果鸡蛋不在标准pythons站点packagesdir或commoneggs目录(见下文)等公共共享位置,它还将下载并安装所需的鸡蛋(如grokcore.startup)

通过在home dir中创建一个
.buildout/
目录,并在此目录中创建一个名为
default.cfg
的文件,您可以告诉buildout每次都在同一位置安装鸡蛋,该文件的内容如下:

[buildout]
eggs-directory = /home/myname/.buildout/eggs
这将在给定路径中安装所有“本地”鸡蛋