WIN7下安装Python3.7和labelImg-1.7.0

 

安装python3.7

  1. 官方https://www.python.org/downloads/windows/,下载windows 64bit python3.7版本
  2. Administrator权限运行安装文件。
  3. 勾选Add Python 3.7 to PATH
  4. 其余默认设置,一般不会出问题。


安装lxml

  1. pip3 install lxml
  2. If you fail to build lxml on your MS Windows system from the signed and tested sources that we release, consider using the binary builds from PyPI or the unofficial Windows binaries that Christoph Gohlke generously provides.
  3. https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml下载其中的lxml-4.2.3-cp37-cp37m-win_amd64.whl
  4. 在刚下载的whl文件所在目录,运行pip3 install lxml-4.2.3-cp37-cp37m-win_amd64.whl,即可安装lxml


安装PyQt

  1. pip3 install PyQt5
  2. 由于网速太慢,我切换到了迅雷下载,下载的文件是PyQt5-5.11.2-5.11.1-cp35.cp36.cp37.cp38-none-win_amd64.whl
    下载路径:https://files.pythonhosted.org/packages/5d/85/d174a50e0d6b60aa9113f6a32afb31f25345bec8584992af486235373252/PyQt5-5.11.2-5.11.1-cp35.cp36.cp37.cp38-none-win_amd64.whl (93.3MB)
  3. 然后在文件所在目录运行如下命令:
    pip3 install PyQt5-5.11.2-5.11.1-cp35.cp36.cp37.cp38-none-win_amd64.whl


安装labelImg

  1. 运行: pyrcc5 -o resources.py resources.qrc
    注:本来是pyrcc4 -o resources.py resources.qrc,由于我用PyQt5所以用pyrcc5


运行labelImg

  1. python labelImg.py 或者 py labelImg.py
  2. 成功出现如下界面。

 


猜你喜欢

转载自www.cnblogs.com/xbit/p/9370460.html
今日推荐