2013-05-18 46 views
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 

在openwrt上安裝ctypes.py時出現此錯誤。不幸的是,我找不到distutils.core設置的下載鏈接。Distutils.core找不到,我可以在哪裏下載它

有人能指給我嗎?

回答

1

distutils在Python的標準庫中發佈。一些操作系統認爲它不是普通的模塊,但只對開發人員有用,所以他們將它與C頭文件,配置文件和co一起移動到python-devel軟件包。 https://dev.openwrt.org/ticket/793告訴我這是OpenWRT的情況:您需要安裝python-dev才能安裝distutils。

0

登錄至OpenWrt的嘗試:

opkg update 
    opkg install distribute 
相關問題