pydensecrf icon indicating copy to clipboard operation
pydensecrf copied to clipboard

Installation by pip fails in Python 3.7

Open juneoh opened this issue 5 years ago • 9 comments

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.

juneoh avatar Nov 14 '18 02:11 juneoh

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

xtudbxk avatar Nov 16 '18 03:11 xtudbxk

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).

stefan-it avatar Nov 16 '18 09:11 stefan-it

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

Solution is to install cython.

stevenwalton avatar Jul 22 '19 17:07 stevenwalton

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.

wangleihitcs avatar Sep 29 '19 10:09 wangleihitcs

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

Branikas avatar Oct 22 '19 10:10 Branikas

I was getting errors like:

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

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

rvorias avatar Dec 18 '19 09:12 rvorias

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

Jayuda avatar Dec 31 '19 02:12 Jayuda

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

lucasb-eyer avatar Mar 11 '21 14:03 lucasb-eyer

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.

dennisushi avatar Jan 17 '23 09:01 dennisushi