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变量?