使用Python freeze.py时出错
我想在Ubuntu上打包我的Python文件,所以我安装了python2.7-examples。当我使用使用Python freeze.py时出错,python,ubuntu,python-2.7,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 尝试重新安装/更新python。在ubuntu
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
尝试重新安装/更新python。在ubuntu中,您必须安装
python2.7-examples
,尽管这仍然无法解决问题
之后,您需要将/usr/lib/python2.7/config
符号链接到ubuntu中配置的全名,即/usr/lib/python2.7/config-x86_64-linux-gnu/
;在我这样做之后,我能够使用freeze.py
而没有任何问题