Comments (7)
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.
from pydensecrf.
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
from pydensecrf.
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.
from pydensecrf.
Could you provide the version of your setuptools pip and wheels i think that the problem is related to that version, please and thankyou
from pydensecrf.
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
from pydensecrf.
Using pip prompt failed for me, but conda prompt succeeded.
from pydensecrf.
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!!!
from pydensecrf.
Related Issues (20)
- Extract the filters
- Custom label compatibility function
- could anyone give me some advise? HOT 4
- Inference runs much slower in python 2.7 than 3.6 HOT 3
- apply densecrf to node classification
- can use DenseCRF2D but can't use DenseCRF HOT 1
- what does unary means ?
- Where is the DenseCRF2D?
- Change one cpp file in the source code and compile [3DVolumes]
- New release on PyPi? HOT 26
- terminate called after throwing an instance of 'std::length_error' what(): vector::_M_fill_insert Aborted (core dumped)
- Bad shape for unary energy HOT 1
- Questions on the library
- This error originates from a subprocess, and is likely not a problem with pip HOT 5
- fatal error: Python.h: No such file or #include "Python.h" HOT 1
- pip install error RHEL Fedora HOT 2
- Make installation easier through pure Python packages. HOT 1
- compatibility issue with cython 3.0.0 HOT 5
- dont know how to solve this,already install cpython HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pydensecrf.