使用Python freeze.py时出错

8 python ubuntu python-2.7

我想在Ubuntu上打包我的Python文件,所以我安装了python2.7-examples.当我使用时,python freeze.py my_file.py我收到以下错误:

Error: needed directory /usr/lib/python2.7/config not found
Use ``/usr/share/doc/python2.7/examples/Tools/freeze/freeze.py -h'' for help
Run Code Online (Sandbox Code Playgroud)

Fer*_*imo 0

尝试重新安装/更新 python。