imagepy在Ubuntu下的安装步骤

imagepy 是一个用python写的开源的图像处理框架,
imagepy依赖的python 库如下,版本: python3.6 ,Ubuntu默认的python2.7不支持。
dependencies:

  • numba
  • numpy-stl
  • openpyxl
  • pandas
  • pydicom
  • pypubsub
  • read-roi
  • scikit-image
  • scikit-learn
  • shapely
  • wxpython
  • xlrd
  • xlwt
  • markdown
  • python-markdown-math
  • moderngl
  • pystackreg
    imagepy的github :
    https://github.com/Image-Py/imagepy
    下载下来。
    python库使用pip3 完成安装的所以先安装pip3.
    1 sudo apt install python3-pip
    imagepy 依赖wxPython 的ui framework 安装wxPython
    2 pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 wxPython
    Collecting wxPython
    Downloading https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04/wxPython-4.1.0-cp36-cp36m-linux_x86_64.whl (112.5MB)
    直接拷贝https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04/wxPython-4.1.0-cp36-cp36m-linux_x86_64.whl
    下载链接
    http://blog.cvosrobot.com/?post=573
    到浏览器打开,开始下载,下载完毕后导入Ubuntu后,
    pip3 install wxPython-4.1.0-cp36-cp36m-linux_x86_64.whl
    3 pip3 install imagepy 会下载上述 的一些python库但是下载不完全,需要自己手动安装。
    下载GitHub的imagepy
    然后cd imagepy 。
    4 pythopn3 -m imagepy
    这里缺啥补啥。
    ModuleNotFoundError: No module named ‘shapely’
    lid@lid-VirtualBox:~/share/imagepy/imagepy-master$ pip3 install shapely

再执行 python3 -m imagepy
ImportError: libpng12.so.0: cannot open shared object file: No such file or directory
lid@lid-VirtualBox:~/share/imagepy/imagepy-master$ cd …
lid@lid-VirtualBox:~/share/imagepy$ sudo dpkg -i libpng12-0_1.2.54-1ubuntu1_amd64.deb
再执行 python3 -m imagepy

ModuleNotFoundError: No module named ‘matplotlib’
lid@lid-VirtualBox:~/share/imagepy/imagepy-master$ pip3 install matplotlib

注意:scikit-imagepackage代替skimage`
ModuleNotFoundError: No module named ‘skimage’
lid@lid-VirtualBox:~/share/imagepy/imagepy-master$ pip3 install skimage
Collecting skimage
Downloading https://files.pythonhosted.org/packages/3b/ee/edbfa69ba7b7d9726e634bfbeefd04b5a1764e9e74867ec916113eeaf4a1/skimage-0.0.tar.gz
Complete output from command python setup.py egg_info:

*** Please install the `scikit-image` package (instead of `skimage`) ***

lid@lid-VirtualBox:~/share/imagepy/imagepy-master$ pip3 install scikit-image

再执行 python3 -m imagepy

5 当提示 ImportError: cannot import name ‘pub’
使用指令 pip3 install pypubsub
Collecting pypubsub
Downloading https://files.pythonhosted.org/packages/1a/41/a0aceb552d8ec63bb1e8223d130f9dd0f736470036d75d708183b104a2cb/Pypubsub-4.0.3-py3-none-any.whl (61kB)
100% |████████████████████████████████| 61kB 86kB/s
Installing collected packages: pypubsub
Successfully installed pypubsub-4.0.3
6 sudo apt-get install libwebkitgtk-3.0-0
我的环境下当这个安装完后,
再执行 python3 -m imagepy
就会弹出

更多:
http://blog.cvosrobot.com/?post=573

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值