Some installed packages and environment: numpy, scipy, cython, scikit-learn, Python 2.7.10 (Anaconda 2.4.0 64-bit), windows 7 64-bit
I tried it many times to install it in windows cmd using "pip install pystruct", but there is error coming out each time, shown as [error 1]. It seems the error is caused by installing ad3? or by c++ compiler ?
Did anyone encounter this same problem? Really appreciate if some one could give me some suggestions. Really appreciate that!
[error 1] =======================================================================
C:\Users\username>pip install pystruct
Collecting pystruct
Collecting ad3 (from pystruct)
Using cached ad3-2.0.2.tar.gz
Building wheels for collected packages: ad3
Running setup.py bdist_wheel for ad3
Complete output from command C:\Anaconda2\python.exe -c "import setuptools;__f
ile__='c:\\users\\username\\appdata\\local\\temp\\pip-build-ksu2no\\ad3\\setup.py';e
xec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdi
st_wheel -d c:\users\username\appdata\local\temp\tmpuqja6bpip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\ad3
copying python\ad3\simple_inference.py -> build\lib.win-amd64-2.7\ad3
copying python\ad3\__init__.py -> build\lib.win-amd64-2.7\ad3
running build_clib
building 'ad3' library
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\ad3
C:\TDM-GCC-64\bin\gcc.exe -DMS_WIN64 -mdll -O -Wall -I. -I./ad3 -I./Eigen -c a
d3/FactorGraph.cpp -o build\temp.win-amd64-2.7\ad3\factorgraph.o
ad3/FactorGraph.cpp:22:26: fatal error: gettimeofday.h: No such file or direct
ory
compilation terminated.
error: command 'C:\\TDM-GCC-64\\bin\\gcc.exe' failed with exit status 1
----------------------------------------
Failed building wheel for ad3
Failed to build ad3
Installing collected packages: ad3, pystruct
Running setup.py install for ad3
Complete output from command C:\Anaconda2\python.exe -c "import setuptools,
tokenize;__file__='c:\\users\\username\\appdata\\local\\temp\\pip-build-ksu2no\\ad3\
\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace
('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\rliu\appdata\local
\temp\pip-hbb14o-record\install-record.txt --single-version-externally-managed -
-compile:
running install
running build
running build_py
running build_clib
building 'ad3' library
C:\TDM-GCC-64\bin\gcc.exe -DMS_WIN64 -mdll -O -Wall -I. -I./ad3 -I./Eigen -c
ad3/FactorGraph.cpp -o build\temp.win-amd64-2.7\ad3\factorgraph.o
ad3/FactorGraph.cpp:22:26: fatal error: gettimeofday.h: No such file or dire
ctory
compilation terminated.
error: command 'C:\\TDM-GCC-64\\bin\\gcc.exe' failed with exit status 1
----------------------------------------
Command "C:\Anaconda2\python.exe -c "import setuptools, tokenize;__file__='c:\\u
sers\\username\\appdata\\local\\temp\\pip-build-ksu2no\\ad3\\setup.py';exec(compile(
getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__
, 'exec'))" install --record c:\users\username\appdata\local\temp\pip-hbb14o-record\
install-record.txt --single-version-externally-managed --compile" failed with er
ror code 1 in c:\users\username\appdata\local\temp\pip-build-ksu2no\ad3
You are using pip version 7.1.2, however version 8.1.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
=======================================================================