ubuntu16.04安装labelme

1、安装Anaconda

下载

官方下载地址:https://www.continuum.io/downloads 
所有安装包地址:https://repo.continuum.io/archive/ 
这里使用 Python 3.5 版本的 “Anaconda3-4.2.0-Linux-x86_64.sh”,如果下载速度慢或下载失败,可以FQ下载。 
也可以直接使用我的百度云分享的文件:链接:http://pan.baidu.com/s/1boDmMZX 密码:0ega

安装

进入文件目录解压,运行下面语句开始安装

$ bash Anaconda2-5.0.1-Linux-x86_64.sh

Welcome to Anaconda2 5.0.1

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 
===================================
Anaconda End User License Agreement
===================================

Copyright 2015, Anaconda, Inc.

..........

cryptography
A Python library which exposes cryptographic recipes and primitives.


Do you accept the license terms? [yes|no]
[no] >>> yes

Welcome to Anaconda2 5.0.1

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 
===================================
Anaconda End User License Agreement
===================================

Copyright 2015, Anaconda, Inc.

 

cryptography
A Python library which exposes cryptographic recipes and primitives.


Do you accept the license terms? [yes|no][no] >>> yes 

Anaconda2 will now be installed into this location:
/home/luo/anaconda2

- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below

[/home/luo/anaconda2] >>>
PREFIX=/home/luo/anaconda2
installing: python-2.7.14-hc2b0042_21 ...
Python 2.7.14 :: Anaconda, Inc.
installing: ca-certificates-2017.08.26-h1d4fec5_0 ...
......
installing: jupyter-1.0.0-py27h505fd4b_0 ...
installing: anaconda-5.0.1-py27hd9359a7_1 ...
installation finished.
Do you wish the installer to prepend the Anaconda2 install locationto PATH in your /home/luo/.bashrc ? [yes|no][no]

>>> yes

Appending source /home/luo/anaconda2/bin/activate to /home/luo/.bashrc
A backup will be made to: /home/luo/.bashrc-anaconda2.bak


For this change to become active, you have to open a new terminal.

Thank you for installing Anaconda2!
luo@luo-Lenovo-G480:~/桌面/MyFile$ source ~/.bashrc

 

2、安装docker

$ sudo apt-get install -y docker.io

$ sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker

$ docker -v
Docker version 1.13.1, build 092cba3

然后运行下面语句:

$ wget https://raw.githubusercontent.com/wkentaro/labelme/master/scripts/labelme_on_docker

3、安装pyQT4

$ sudo apt-get install python-qt4 pyqt4-dev-tools

您希望继续执行吗? [Y/n] y

4、如果以前没有安装pip,需要安装pip

$ sudo apt-get install python-pip python-dev build-essential

您希望继续执行吗? [Y/n] y

$ sudo pip install --upgrade pip

$ sudo pip install --upgrade virtualenv

5、安装labelme

$ sudo pip install labelme

出现如下语句表示安装成功:

Installing collected packages: pyparsing, backports.functools-lru-cache, subprocess32, pytz, six, python-dateutil, cycler, numpy, matplotlib, Pillow, scipy, PyYAML, labelme
Running setup.py install for subprocess32 ... done
Running setup.py install for PyYAML ... done
Running setup.py install for labelme ... done
Successfully installed Pillow-5.0.0 PyYAML-3.12 backports.functools-lru-cache-1.4 cycler-0.10.0 labelme-2.6.4 matplotlib-2.1.2 numpy-1.14.0 pyparsing-2.2.0 python-dateutil-2.6.1 pytz-2017.3 scipy-1.0.0 six-1.11.0 subprocess32-3.2.7

 

6、现在运行依然会报错,需要运行下面命令

$ sudo apt-get install python-tk

正在处理用于 libc-bin (2.23-0ubuntu9) 的触发器 ...
正在设置 tk8.6-blt2.5 (2.5.3+dfsg-3) ...
正在设置 blt (2.5.3+dfsg-3) ...
正在设置 python-tk (2.7.11-2) ...
正在处理用于 libc-bin (2.23-0ubuntu9) 的触发器 ...

 

OK,所有命令执行完毕,现在可以运行程序:

$ labelme

 

如果出现下面界面,则标识程序安装成功:

 

posted @ 2018-01-22 19:45  西北逍遥  阅读(1703)  评论(0编辑  收藏  举报