Search code examples
pythonpipscikit-image

installing skimage with pip3 fails


I am trying to pip install the package "skimage" on my Ubuntu VM to analyze structural similarity of images with scikit-image. But I always get a strange error. I already tried to install it with conda but it didn't succeeded either. Conda seems to know just "scikit-image" but not "skimage". The required packages like numpy, matplotlib, ... are installed and upgraded already.

My input:

pip3 install skimage

the error:

    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-k9rh2ebf/skimage/setup.py'"'"'; __file__='"'"'/tmp/pip-install-k9rh2ebf/skimage/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-k9rh2ebf/skimage/pip-egg-info
         cwd: /tmp/pip-install-k9rh2ebf/skimage/
    Complete output (3 lines):
    
    *** Please install the `scikit-image` package (instead of `skimage`) ***
    
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


Thanks for your help!

Solution

  • Finally after a lot of trying I figured out it had to do with my virtual machine I was using. In the prebuilt Ubuntu image for VirtualBox I downloaded, something seems to be wrong with the installation paths. Setting up a native Ubuntu (without VM) solved the problem for me. The skimage library is empty and only points to the sicikit-image library and is normally installed with the installation of scikit-image (which didn't work because of the VM). Now on my native ubuntu everything works as it should.