I'm currently writing a C# App which should use a Python script for some tasks.
I have some modules in my Python "site-packages" folder for controlling an Alebaran NAO robot, and copied them to the IronPython "site-packages" folder. But when I try to import the naoqi file, it says:
No module named _inaoqi
There is an _inaoqi.pyd in the folder, too.
Anybody any ideas on this?
不幸的是,IronPython不支持CPython的.pyd文件。
Is the site-packages folder in the python path?. Open a python interpreter and write:
import sys
print sys.path
If the folder is not in the list you can add it following the instructions of this other answer: How to add to the pythonpath in windows 7?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.