安装labelme注释工具

时间:2018-03-22 15:29:11

标签: python machine-learning pyqt computer-vision label

我尝试使用下面列出的虚拟环境方法从此链接labelme在Mac OS 10.11.x上安装labelme注释工具:

# python3
conda create --name=labelme python=3.6
source activate labelme
# conda install pyqt
pip3 install pyqt5 # pyqt5 can be installed via pip on python3
pip3 install labelme

当我在终端上运行labelme时出现此错误:

File "/Users/xxx/anaconda3/lib/python3.6/site-packages/labelme/app.py", line 32, in <module>

from PyQt5.QtGui import *

ImportError: dlopen(/usr/local/lib/python2.7/site-packages/PyQt5/QtGui.so, 2): 
Symbol not found: _PyInt_AsLong

Referenced from: /usr/local/lib/python2.7/site-packages/PyQt5/QtGui.so
Expected in: flat namespace in /usr/local/lib/python2.7/site-packages/PyQt5/QtGui.so

在处理上述异常期间,发生了另一个异常:

Traceback (most recent call last):
File "/Users/xxxx/anaconda3/bin/labelme", line 7, in <module>
from labelme.app import main
File "/Users/rafikgouiaa/anaconda3/lib/python3.6/site-packages/labelme/app.py", line 37, in <module>

from PyQt4.QtGui import *
ModuleNotFoundError: No module named 'PyQt4'**

似乎labelme在Python 2.7中查找pyqt5,而不是在安装了pyqt5的Python 3.6中查找。{/ p>

有关安装labelme或除labelme和Matlab工具以外的任何其他工具的帮助吗?

0 个答案:

没有答案