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

Installation failed, on Python 3.6, macOS 10.12.6 X64 #236

Closed
woxing920821 opened this issue Aug 16, 2017 · 2 comments
Closed

Installation failed, on Python 3.6, macOS 10.12.6 X64 #236

woxing920821 opened this issue Aug 16, 2017 · 2 comments

Comments

@woxing920821
Copy link

Hi,

I have a trouble when I installed the vizdoom with python3.6. And I don't know what's wrong with it.

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/private/tmp/pip-00t2SR-build/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-HbgiTu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-00t2SR-build/

@mwydmuch
Copy link
Member

Hello @woxing920821,
what command exactly you used to install ViZDoom? pip3 install should work without the problem on macOS Sierra.

@woxing920821
Copy link
Author

Hi @mwydmuch

Thank you very much. I got it. I had installed the boost-python with python2.7 and I forgot uninstall it when I install the boost-python with python3.6.

And I have a new problem is that when I making vizdoom the header "Python.h" cannot be found.

In file included from /Users/xiechuan/Downloads/ViZDoom-master/src/lib_python/ViZDoomGamePython.cpp:23:
/Users/xiechuan/Downloads/ViZDoom-master/src/lib_python/ViZDoomGamePython.h:31:10: fatal error:
'Python.h' file not found
#include <Python.h>
^
1 error generated.
make[2]: *** [CMakeFiles/libvizdoom_python3.dir/src/lib_python/ViZDoomGamePython.cpp.o] Error 1
make[1]: *** [CMakeFiles/libvizdoom_python3.dir/all] Error 2
make: *** [all] Error 2

The command of cmake is "sudo cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON3=ON -DPYTHON_EXECUTABLE=/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/include/python3.6 -DPYTHON_LIBRARY=/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/libpython3.6.dylib -DNUMPY_INCLUDES=/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/include
"

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

2 participants