运行时错误:找不到与 ImageSensor 匹配的 Python 模块
RuntimeError: Matching Python module for ImageSensor not found
我想运行这个测试:https://github.com/numenta/htmresearch/tree/master/projects/image_test但是当我执行python run_mnist_experiment.py
时,我得到一个错误:
ERR: Matching Python module for ImageSensor not found. [/root/bamboo-agent-home/xml-data/build-dir/NUP-CORE-NCRM/src/nupic/engine/RegionImplFactory.cpp line 444]
Traceback (most recent call last):
File "/home/roy/PycharmProjects/htm/run_mnist_experiment.py", line 237, in <module>
net = createNetwork()
File "/home/roy/PycharmProjects/htm/run_mnist_experiment.py", line 98, in createNetwork
json.dumps(DEFAULT_IMAGESENSOR_PARAMS))
File "/home/roy/.local/lib/python2.7/site-packages/nupic/engine/__init__.py", line 639, in addRegion
engine_internal.Network.addRegion(self, name, nodeType, nodeParams)
File "/home/roy/.local/lib/python2.7/site-packages/nupic/bindings/engine_internal.py", line 1167, in addRegion
return _engine_internal.Network_addRegion(self, *args, **kwargs)
RuntimeError: Matching Python module for ImageSensor not found.
所以我执行pip install ImageSensor
,但我得到了这个:
Collecting ImageSensor
Could not find a version that satisfies the requirement ImageSensor (from versions: )
No matching distribution found for ImageSensor
我该怎么做才能运行此测试?
在谷歌和numenta存储库上搜索后,我发现这个模块可以在nupic.vision中找到。因此,您只需要安装该存储库。这是我在谷歌上找到的来源。只需使用它来解决您的问题。
模块本身可以在那里找到:https://github.com/numenta/nupic.vision/blob/master/src/nupic/vision/regions/ImageSensor.py
相关文章:
- 在 python 模块中导入子模块时PyImport_Import失败
- C++ Python 模块在 Blender 中崩溃,但在 Python 控制台中不会崩溃
- 如何使用 swig C++命名空间作为 python 模块公开
- 如何将 cv::mat 对象从 python 模块传递到 c++ 函数并返回返回的 cv::mat 类型为对象?
- C++ Swig Python 模块中的内存泄漏
- boost.python模块扩展生成SIGSEGV
- 使用Boost Python的Python模块是空的?
- 为什么无法在 Cocoa 应用程序调用的 C++ func 中嵌入自定义 Python 模块
- 来自C 的自动化Python模块的张量源
- 如何使用C++导入多个同名的 python 模块
- C++ Python 模块导入错误: "undefined symbol: Py_InitModule3" ( Py_InitModule () )
- 使用 Boost.Python 创建的 Python 模块不会被导入
- 导入 Boost Python 模块 (function_impl_base9max_arityEv) 时出错
- numpy.core.multiarray在通过Xcode中开发的C 应用程序调用Python模块时未能导入
- 运行时错误:找不到与 ImageSensor 匹配的 Python 模块
- GDB Python模块读取内存内容
- 我可以编译boost.python模块而没有BJAM
- C++优化级别是否会影响Swig Python模块的性能
- 如何从python模块(boost.python)导入类
- 使用C/neneneba API和C++类编写Python模块