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

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 深蓝海洋 设计师:CSDN官方博客 返回首页