Closed guanhuankang closed 4 years ago
@Andrew-Qibin I run setup.py install using Pycharm, OS: Windows 10, 64 bits. And I get the following error, any suggestion how to solve? Thanks
Connected to pydev debugger (build 193.6911.25) running install running build running build_py running build_ext warning: build_py: byte-compiling is disabled, skipping.
building 'pydensecrf.eigen' extension
C:\Users\Tamir\anaconda3\Library\mingw-w64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -Ipydensecrf/densecrf/include -Ipydensecrf -IC:\Users\Tamir\anaconda3\include -IC:\Users\Tamir\anaconda3\include -c pydensecrf/eigen.cpp -o build\temp.win-amd64-3.7\Release\pydensecrf\eigen.o
In file included from pydensecrf/densecrf/include/Eigen/Core:248:0,
from pydensecrf/densecrf/include/Eigen/Dense:1,
from pydensecrf/eigen.cpp:266:
pydensecrf/densecrf/include/Eigen/src/Core/util/Memory.h: In function 'Index Eigen::internal::first_aligned(const Scalar, Index)':
pydensecrf/densecrf/include/Eigen/src/Core/util/Memory.h:454:48: warning: typedef 'Packet' locally defined but not used [-Wunused-local-typedefs]
typedef typename packet_traits
You could have a try on this https://github.com/lucasb-eyer/pydensecrf Also, you could download the .whl file and install by running “pip install whl file name”. Hope this could help you! Thanks.
@guanhuankang Thanks for the fast reply. I could not find the .whl file you mentioned, can you please give me direct link to this file?
You could download the corresponding whl files from this link (I recommend you search pydensecrf on this page to locate the target file) https://www.lfd.uci.edu/~gohlke/pythonlibs/ . Plus, you could try to run pip install pydensecrf .
@guanhuankang When I install via pip I get ModuleNotFoundError: No module named 'pydensecrf' When I try to install pip install pydensecrf-1.0rc2-cp39-cp39-win_amd64.whl, I get: ERROR: pydensecrf-1.0rc2-cp39-cp39-win_amd64.whl is not a supported wheel on this platform. Any idea what to do?
Sorry, I have no idea about the issues you encountered in. Make sure you have downloaded the correct whl file. I.e. pydensecrf-1.0rc2-cp39-cp39-win_amd64.whl should be installed on windows platform with a python 3.9, I guess.
I try to install it on OS win10(64bits), but I fail to run command "python setup.py install". Before installation, I install Cython with command "conda install Cython" as it required. If you have fixed this error, could you sent me a msg? Thanks!