天天看點

roLabelImg的win10編譯并打包為exe

roLabelImg is a graphical image annotation tool can label ROTATED rectangle regions, which is rewrite from 'LabelImg'.

github源碼:https://github.com/cgvict/roLabelImg

win10 + Anaconda3上安裝編譯:

1.安裝python2.7;

1)Anaconda建立python2.7虛拟環境

     conda create py27 python = 2.7

2)激活py27

     conda activate py27

2.安裝pyqt4;

pip install PyQt4‑4.11.4‑cp27‑cp27m‑win_amd64.whl,安裝比較慢,一直沒成功,是以先下載下傳再安裝了。

http://www.lfd.uci.edu/~gohlke/pythonlibs

下載下傳PyQt4‑4.11.4‑cp27‑cp27m‑win_amd64.whl儲存到本地

roLabelImg的win10編譯并打包為exe

pip install d:/PyQt4‑4.11.4‑cp27‑cp27m‑win_amd64.whl

3.安裝lxml

pip install lxml

4.安裝PyInstaller

pip install pyinstaller

5.切換工作目錄至源碼目錄

roLabelImg的win10編譯并打包為exe

pyinstaller -F  -p   C:\ProgramData\Anaconda3\envs\py27\Lib\site-packages;D:\code\roLabelImg-master\libs  labelImg.py

roLabelImg的win10編譯并打包為exe

6.運作exe

roLabelImg的win10編譯并打包為exe
roLabelImg的win10編譯并打包為exe