2010-10-25 188 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