user1922137
user1922137

Reputation:

Error in using Python freeze.py

I want to package my Python file on Ubuntu so I installed 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

Upvotes: 8

Views: 1736

Answers (2)

user1529891
user1529891

Reputation:

In ubuntu you have to install the python2.7-examples although this still will not fix the issue.

After that you'll need to symlink /usr/lib/python2.7/config to the full name of the config in ubuntu which is /usr/lib/python2.7/config-x86_64-linux-gnu/; after I did this I was able to use freeze.py without any issues.

Upvotes: 4

Fernando Retimo
Fernando Retimo

Reputation: 1073

Try re-installing/ updating python.

Upvotes: 0

Related Questions