yujiali / pygco

A python wrapper for gco-v3.0 package, used for graph cuts based MRF optimization.
56 stars 33 forks source link

`pip install pygco` doesn't work if dependencies are installed in the same command #9

Open setgree opened 5 years ago

setgree commented 5 years ago

The following doesn't work (these are Docker examples)

docker run --rm -it ubuntu:18.04
apt-get update && apt-get install -y python3-pip build-essential
pip3 install cython numpy pygco

You get the error message ModuleNotFoundError: No module named 'Cython'

This also does not work

docker run --rm -it ubuntu:18.04
apt-get update && apt-get install -y build-essential cython python3 python3-pip python3-numpy
pip3 install pygco

You get: ModuleNotFoundError: No module named 'Cython'

This does work

docker run --rm -it ubuntu:18.04
apt-get update && apt-get install -y python3-pip build-essential
pip3 install cython numpy
pip3 install pygco

Not completely sure why, just noting that pygco requires cython and numpy to be installed at a previous step rather than along with it.

Borda commented 5 years ago

Well, you should ask the authors of that package and not here... According to the PyPi description of pygco package - https://pypi.org/project/pygco/ the repository you are looking for is following - https://github.com/mjirik/gco_python