I'm not able to import skimage in python.
[>> import skimage
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/vrushabh/.local/lib/python2.7/site-packages/skimage/__init__.py", line 156, in <module>
File "/home/vrushabh/.local/lib/python2.7/site-packages/skimage/__init__.py", line 137, in _raise_build_error
%s""" % (e, msg))
ImportError: /home/vrushabh/.local/lib/python2.7/site-packages/skimage/_shared/geometry.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8
It seems that scikit-image has not been built correctly.
Your install of scikit-image appears to be broken.
Try re-installing the package following the instructions at:
this is the error
@vrjgamer how did you install your copy of scikit-image?
using this pip install -U scikit-image
If your distribution ships an outdated version, you may recompile from source. First install the dependencies:
sudo apt-get install python-matplotlib python-numpy python-pil python-scipy
sudo apt-get install build-essential cython
@vrjgamer installing with sudo typically copies files to /usr/lib. In your case you have scikit-image installed also(?) into /home/vrushabh/.local/lib. This latter is probably a corrupted installation.
Please, try with /home/vrushabh/.local/lib/python2.7/site-packages/skimage removed.
@vrjgamer any news?