Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install. #111

Open
hayato18032 opened this issue Sep 9, 2021 · 7 comments
Open

Can't install. #111

hayato18032 opened this issue Sep 9, 2021 · 7 comments

Comments

@hayato18032
Copy link

I try "pip install git+https://github.com/lucasb-eyer/pydensecrf.git" in terminal but was supented.

error:Building wheel for pydensecrf (PEP 517) ... error

I already installed cython!

What should I do?

@b-burton
Copy link

By any chance are you using python 3.7 or newer

I had the exact same problem and fixed it using conda but specifying python 3.6.9
conda install conda-forge pydensecrf python=3.6.9

First I would just try ``conda install conda-forge pydensecrf` as a lot of other people said this fixed all the problems for them

(I have to warn changing back to an older version of python was pretty annoying as it affected a lot of other packages, but it did work for me)

Also depending on your project if you use Google CoLab (which is free) it works in their notebooks.

@ghost
Copy link

ghost commented Sep 30, 2021

Could you provide the version of your setuptools pip and wheels i think that the problem is related to that version, please and thankyou

@zhan-xu
Copy link

zhan-xu commented Nov 10, 2021

hi, i tried to create an env with python=3.6.9, and i was able to install it simply by pip install pydensecrf
python>=3.7.0 caused problem on my machine no matter what.

@victorbug
Copy link

victorbug commented Feb 10, 2022

Error:
error: command 'gcc' failed with exit status 1
ERROR: Failed building wheel for pydensecrf
Failed to build pydensecrf
ERROR: Could not build wheels for pydensecrf which use PEP 517 and cannot be installed directly

Fix for me:
apt-get install build-essential
(source: https://stackoverflow.com/questions/35048582/how-to-fix-error-command-x86-64-linux-gnu-gcc-failed-with-exit-status-1)
pip install git+https://github.com/lucasb-eyer/pydensecrf.git

pip freeze:
Cython==0.29.27
installed with the commands:
sudo apt-get remove cython
pip install -U cython

python version:
Python 3.9.7

another commands I tried (Maybe, just maybe, the solution was a combination of some of these commands, but I'm pretty sure that is not the case...):
pip3 install --upgrade pip
sudo apt-get install python3-dev
python -m pip install --upgrade pip
python -m pip install --no-use-pep517 pydensecrf
conda install conda-forge pydensecrf python=3.6.9
conda install conda-forge pydensecrf

@NTUZZH
Copy link

NTUZZH commented Aug 3, 2023

Using pip prompt failed for me, but conda prompt succeeded.

@AdvaithRavishankar
Copy link

Downgrading Cython to 0.29.36 fixed the issues with the installation

pip3 install --force-reinstall cython==0.29.36
pip3 install --no-build-isolation git+https://github.com/lucasb-eyer/pydensecrf.git

@tobenan
Copy link

tobenan commented Mar 5, 2024

Downgrading Cython to 0.29.36 fixed the issues with the installation

pip3 install --force-reinstall cython==0.29.36 pip3 install --no-build-isolation git+https://github.com/lucasb-eyer/pydensecrf.git

genius!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants