Error using Python freeze.py

I want to package a Python file on Ubuntu in order to install python2.7 examples. When I used python freeze.py my_file.py , I got the following error:

 Error: needed directory /usr/lib/python2.7/config not found Use ``/usr/share/doc/python2.7/examples/Tools/freeze/freeze.py -h'' for help 
+8
python ubuntu
source share
2 answers

In ubuntu you need to install python2.7-examples , although this still does not solve the problem.

After that, you will need to symbolically bind /usr/lib/python2.7/config to the fully qualified name in ubuntu, which is /usr/lib/python2.7/config-x86_64-linux-gnu/ ; after that I was able to use freeze.py without any problems.

+4
source share

Try reinstalling / updating python.

0
source share

All Articles