Created
April 29, 2018 14:08
-
-
Save elinx/4ea60560e52997e819fe2b5a139f62e9 to your computer and use it in GitHub Desktop.
CMake Specify Python Headers and Library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake .. -DPYTHON_INCLUDE_DIR=/home/xilinxing/software/anaconda3/envs/py35/include/python3.5m/ -DPYTHON_LIBRARY=/home/xilinxing/software/anaconda3/envs/py35/lib | |
# how to find correct python directory | |
# python | |
>>> from distutils import sysconfig | |
>>> print(sysconfig.get_python_inc()) | |
>>> print(sysconfig.get_python_lib()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment