0
Traceback (most recent call last):
  File "setup.py", line 26, in <module>
    from distutils.core import setup, Extension, Command
ImportError: No module named distutils.core

I get this error when installing ctypes.py on openwrt. Unfortunately, I cannot find the download link to the setup for distutils.core.

Can someone point me to it?

4

2 回答 2

1

distutils ships in Python’s standard libary. Some operating systems think it’s not a regular module but only interesting for developers, so they move it to a python-devel package together with C headers, config files and co. https://dev.openwrt.org/ticket/793 tells me that this is the case for OpenWRT: you need to install python-dev to get distutils installed.

于 2013-05-18T17:17:48.267 回答
0

While logged in to openwrt try:

    opkg update
    opkg install distribute
于 2013-09-18T20:11:27.050 回答