2010-10-25 209 views

回答

7

在源代码分发中,它始终位于Tools/之下。

+1

我没有安装来源。谢谢 – waffleman 2010-12-02 20:54:53

+4

如果你没有Tools文件夹:'apt-get install python2.7-examples' http://askubuntu.com/questions/282824/where-can-i-find-the-python-tools-目录 – apple16 2014-08-26 03:03:12

0

您是否收到错误消息:“找不到需要的目录/ usr/local/lib/python/lib”?

您需要先配置Freeze,然后再使用它。在你的Python构建树中运行“make libainstall”。

-4

我花了一段时间才弄明白:你需要安装“python-pip”软件包(带有依赖项)。我也自己安装了“python-tools”,但这没有帮助。在linux命令

root ~ #> locate freeze.py 
/usr/lib/python2.6/site-packages/pip/commands/freeze.py 
+0

除非这是snark(它很可能是?),这不是OP寻找的'freeze.py' :) – Iguananaut 2013-12-18 23:17:54

2

使用locate freeze.py

[email protected]:/usr/lib/python2.7$ locate freeze.py 
/usr/lib/python2.7/dist-packages/pip/commands/freeze.py 
/usr/lib/python2.7/dist-packages/pip/commands/freeze.pyc 
/usr/lib/python2.7/dist-packages/pip/operations/freeze.py 
/usr/lib/python2.7/dist-packages/pip/operations/freeze.pyc 
/usr/local/lib/python2.7/dist-packages/pip/commands/freeze.py 
/usr/local/lib/python2.7/dist-packages/pip/commands/freeze.pyc 
/usr/local/lib/python2.7/dist-packages/pip/operations/freeze.py 
/usr/local/lib/python2.7/dist-packages/pip/operations/freeze.pyc 
/usr/share/king-phisher/tools/cx_freeze.py