[英]Couldn't find cython libraries
我在执行python函数时发现以下问题:
Traceback (most recent call last):
File "/home/ppd/myfunc.py", line 2, in <module>
from cythonUtilsPy.cythonUtils import *
ImportError: No module named cythonUtils
如何将此cythonUtils
模块添加到我的路径?
根据错误消息,看起来cythonUtilsPy
已经在您的路径上并找到了,但是未找到子模块cythonUtilsPy.cythonUtils
。 除非您导入了错误的cythonUtilsPy
,否则无法进行任何路径操作来解决此问题。
您需要跟踪为什么cythonUtils
没有显示为cythonUtilsPy
的子模块,如果cythonUtils
是目录,则可能缺少__init__.py
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.