lucasb-eyer / pydensecrf

Python wrapper to Philipp Krähenbühl's dense (fully connected) CRFs with gaussian edge potentials.
MIT License
1.94k stars 416 forks source link

Installation by pip fails in Python 3.7 #78

Open juneoh opened 5 years ago

juneoh commented 5 years ago

Thanks for the wonderful work.

Although this issue is not critical for me, for those whom it may concern I just wanted to share that pip install pydensecrf fails on Ubuntu 18.04 with Python 3.7 with error: command 'gcc' failed with exit status 1.

Temporary solution: use Python 3.6. Works like a charm.

xtudbxk commented 5 years ago

I just install with command pip install git+https://github.com/lucasb-eyer/pydensecrf.git, it works also.

stefan-it commented 5 years ago

Latest version (4d5343c398d75d7ebae34f51a47769084ba3a613) from master fails with:

gcc: error: pydensecrf/eigen.cpp: File not directory not found

I tried both GCC 7 and 8

EDIT: Ok, it works but you have to install cython before (pip install cython).

stevenwalton commented 5 years ago

I had this problem and created a PR for it https://github.com/lucasb-eyer/pydensecrf/pull/93

Solution is to install cython.

wangleihitcs commented 5 years ago

gcc: error: pydensecrf/eigen.cpp: No such file or directory solved, thanks! method: pip install cython pip install git+https://github.com/lucasb-eyer/pydensecrf.git my GCC version is 5.4.

Branikas commented 4 years ago

It doesn't work for me either guys, with Windows 10.. It produces a big error file

rvorias commented 4 years ago

I was getting errors like:

fatal error: Python.h: No such file or directory

Solved it by running: sudo apt-get install python3-dev

Jayuda commented 4 years ago

gcc: error: pydensecrf/eigen.cpp: No such file or directory solved, thanks! method: pip install cython pip install git+https://github.com/lucasb-eyer/pydensecrf.git my GCC version is 5.4.

Thanks this work like a charm

lucasb-eyer commented 3 years ago

Closing thanks to #103 but do reopen if it still does not work.

dennisushi commented 1 year ago

The issue is still happening to me. Specifically, it's caused by pydensecrf/eigen.cpp:28:10 Installing cython did not work for me. Does it have to be a specific version? My python is actually the isaac-sim internal python so using I cannot use sudo apt-get install python3-dev. Any help is appreciated.