virtualenv に gym-atari をインストールするのに問題があります。私が知る限り、問題はzlibにあるようですが、zlibはシステムにインストールされています(cmakeもそうです)。誰にもアイデアはありますか?これはGentooシステム上にあり、価値があります:
(tensorflow)alaya ~ # pip install gym[atari]
Requirement already satisfied: gym[atari] in /opt/tensorflow/lib/python2.7/site-packages
Requirement already satisfied: six in /usr/lib64/python2.7/site-packages (from gym[atari])
Requirement already satisfied: requests>=2.0 in /usr/lib64/python2.7/site-packages (from gym[atari])
Requirement already satisfied: pyglet>=1.2.0 in /opt/tensorflow/lib/python2.7/site-packages (from gym[atari])
Requirement already satisfied: numpy>=1.10.4 in /opt/tensorflow/lib/python2.7/site-packages (from gym[atari])
Requirement already satisfied: PyOpenGL; extra == "atari" in /usr/lib64/python2.7/site-packages (from gym[atari])
Collecting atari-py>=0.0.17; extra == "atari" (from gym[atari]) Using cached atari-py-0.0.18.tar.gz
Requirement already satisfied: Pillow; extra == "atari" in /usr/lib64/python2.7/site-packages (from gym[atari])
Building wheels for collected packages: atari-py
Running setup.py bdist_wheel for atari-py ... error
Complete output from command /opt/tensorflow/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Xd0Ga4/atari-py/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpCxn1j3pip-wheel- --python-tag cp27:
.
.
.
[ 9%] Building CXX object CMakeFiles/ale-bin.dir/src/common/display_screen.cpp.o
In file included from /tmp/pip-build-Xd0Ga4/atari-py/atari_py/ale_interface/src/emucore/unzip.c:13:0: /tmp/pip-build-Xd0Ga4/atari-py/atari_py/ale_interface/src/emucore/unzip.h:114:45:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF' extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1,
^
/tmp/pip-build-Xd0Ga4/atari-py/atari_py/ale_interface/src/emucore/unzip.h:127:32:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF' extern unzFile ZEXPORT unzOpen OF((const char *path));
^
/tmp/pip-build-Xd0Ga4/atari-py/atari_py/ale_interface/src/emucore/unzip.h:138:29:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF' extern int ZEXPORT unzClose OF((unzFile file));
. . .
何か案は?私の唯一の推測は、どういうわけかzlibがvirtualenvに取り込まれていないということですか??? たぶんそれはzlibでさえありませんか?