我不确定这是 SimpleCV 的问题还是 Ubuntu 本身的问题。有什么提示吗?svgwrite 是什么?
ERROR:
Traceback (most recent call last):
File "/usr/local/bin/simplecv", line 9, in <module>
load_entry_point('SimpleCV==1.3', 'console_scripts', 'simplecv')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/lib/python2.7/dist-packages/SimpleCV/__init__.py", line 4, in <module>
from SimpleCV.Camera import *
File "/usr/local/lib/python2.7/dist-packages/SimpleCV/Camera.py", line 5, in <module>
from SimpleCV.ImageClass import Image, ImageSet, ColorSpace
File "/usr/local/lib/python2.7/dist-packages/SimpleCV/ImageClass.py", line 14768, in <module>
from SimpleCV.DrawingLayer import *
File "/usr/local/lib/python2.7/dist-packages/SimpleCV/DrawingLayer.py", line 5, in <module>
import svgwrite
ImportError: No module named svgwrite
答案1
这似乎是一个SimpleCV 的已知模块依赖问题. GitHub 线程建议的解决方法是使用以下方法安装缺少的 svgwrite python 模块pip
sudo pip install svgwrite