Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pyinstaller: path or glob "/usr/include/python3.4m/pyconfig.h" not found or matches no files."

I am trying to build my project on a Oracle virtualbox ubuntu 14.04.2 LTS.

My project is in Python 34. I installed pyinstaller via:

pip install https://github.com/pyinstaller/pyinstaller/archive/python3.zip

When I run pyinstaller run.py I get the following error:

FileNotFoundError: Path or glob "/usr/include/python3.4m/pyconfig.h" not found or matches no files.

I indeed don't have a directory '/usr/include/python3.4m', only 'usr/include/python2.7'. Python 34 is installed (by default in Ubuntu).

How can I get it to work?

like image 200
Euphe Avatar asked Aug 02 '15 00:08

Euphe


1 Answers

Apparently installing libpython3.4-dev package solved the problem. http://packages.ubuntu.com/utopic/amd64/libpython3.4-dev/filelist

So do sudo apt-get install libpython3.4-dev if you encounter the problem.

like image 63
Euphe Avatar answered Nov 06 '22 08:11

Euphe