We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On my macbook, I run 'python setup.py install' or 'python setup.py build_ext --inplace' in log_uniform folder and got error:
➜ log_uniform git:(master) ✗ ~/miniconda3/bin/python setup.py install running install running build running build_ext building 'log_uniform' extension creating build creating build/temp.macosx-10.7-x86_64-3.7 gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/gaoxianglu/miniconda3/include -arch x86_64 -I/Users/gaoxianglu/miniconda3/include -arch x86_64 -I/Users/gaoxianglu/miniconda3/lib/python3.7/site-packages/numpy/core/include -I/Users/gaoxianglu/miniconda3/include/python3.7m -c log_uniform.cpp -o build/temp.macosx-10.7-x86_64-3.7/log_uniform.o -std=c++11 warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] log_uniform.cpp:635:10: fatal error: 'ios' file not found #include "ios" ^~~~~ 1 warning and 1 error generated. error: command 'gcc' failed with exit status 1
I installed xcode command line, but the error still exists
The text was updated successfully, but these errors were encountered:
In setup.py, add the extra_link_args
from distutils.core import setup, Extension from Cython.Build import cythonize import numpy setup(ext_modules = cythonize(Extension( "log_uniform", sources=["log_uniform.pyx", "Log_Uniform_Sampler.cpp"], language="c++", include_dirs=[numpy.get_include()], extra_compile_args=["-std=c++11"], extra_link_args=["-stdlib=libc++", "-mmacosx-version-min=10.9"] )))
Sorry, something went wrong.
No branches or pull requests
On my macbook, I run 'python setup.py install' or 'python setup.py build_ext --inplace' in log_uniform folder and got error:
I installed xcode command line, but the error still exists
The text was updated successfully, but these errors were encountered: