Upgrading skimage version on Raspberry pi

筅森魡賤 提交于 2019-12-22 11:08:34

问题


I've installed python packages using the synaptic package manager on Raspberry Pi-2. However, the skimage module version 0.6 is the latest available version in synaptic. Can someone guide me how to upgrade it to 0.11, as certain functions are missing in the older version.

I tried pip install scikit-image, but it gives the output

Running setup.py install for scikit image

and then gets stuck there.


回答1:


I don't think there is anything wrong there. It's just that there is a number of C extensions to compile in scikit-image and it is slow on Raspberry Pi.

For instance, on my laptop with i7 dual core CPU and an SSD, it takes around 5 minutes to install scikit-image from sources. Now if you take into account that the CPU on the RP2 is at least one order of magnitude slower, coupled with a slow SD card, it could take several hours to compile on a RP2.

You can see if you can run the compilations in parallel to speed things up, although I'm not sure if this is doable with pip and C extensions for a python module.



来源:https://stackoverflow.com/questions/29950941/upgrading-skimage-version-on-raspberry-pi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!