Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing pyconfig.h while installing a package

I'm using Python3 (v3.4) add-on on my Synology NAS.

When I try to install package (via ssh using python3 setup.py install) it returns error:

invalid Python installation: unable to open /volume1/@appstore/py3k/usr/local/include/python3.4m/pyconfig.h (No such file or directory)

When I search the disk for the pyconfig.h file, it finds nothing and the folder ...include/python3.4m doesn't even exist. The problem occurred some time ago (in version 3.3), but I searched the disk, found the pyconfig.h file in different location and copied it into the proper folder. Now, there isn't any file anywhere.

Is there any way how to fix this? Thank you.

like image 798
user2781994 Avatar asked Mar 05 '26 08:03

user2781994


1 Answers

You have to install the python-development package, whatever the distribution uses your NAS. But if you are able to install packages, maybe you can install directly the python3. Lets suppose you have the ipkg command available. Try:

# ipkg install python34

Or

# ipkg install python-dev (or python-devel or python-development)
# python3 setup install
like image 62
xbello Avatar answered Mar 06 '26 20:03

xbello



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!