Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/304.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 setuptools';轻松安装将控制台脚本放入?_Python_Easy Install_Egg - Fatal编程技术网

python setuptools';轻松安装将控制台脚本放入?

python setuptools';轻松安装将控制台脚本放入?,python,easy-install,egg,Python,Easy Install,Egg,easy\u install根据egg info中的console\u scripts值生成启动程序脚本。如果一个egg没有指定完整路径,我如何检查生成的脚本是否会被放到/usr/bin,/usr/local/bin,或者其他地方?如果我理解正确的话。您需要检查easy_install和setuptools目录吗 #finds the path to easy_install if it exists which easy_install #where path/to/easy_install

easy\u install
根据egg info中的
console\u scripts
值生成启动程序脚本。如果一个egg没有指定完整路径,我如何检查生成的脚本是否会被放到
/usr/bin
/usr/local/bin
,或者其他地方?

如果我理解正确的话。您需要检查easy_install和setuptools目录吗

#finds the path to easy_install if it exists
which easy_install

#where path/to/easy_install is the output from the above command
#this outputs your easy_install script which will mention the version of setuptools
less path/to/easy_install

不,例如,有一个supervisor egg,在控制台_脚本中有“supervisorctl=…”,有时放在/usr/bin/,有时放在/usr/local/bin,我想知道为什么要打印PATH变量?