In fact, I think @oarfish correctly named it in the comments. The problem is the ridiculous " and " characters in these paths, which are different from the usual double quote character " .
The following error is reproduced for me:
~$ CPPFLAGS="-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0" \ LIBS="-L/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0/stage/lib" \ pip install pyamg Collecting pyamg Downloading pyamg-3.0.1.tar.gz (759kB) 100% |ββββββββββββββββββββββββββββββββ| 761kB 33.2MB/s Installing collected packages: pyamg Running setup.py install for pyamg ... creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/pyamg creating build/temp.linux-x86_64-2.7/pyamg/amg_core compile options: '-D__STDC_FORMAT_MACROS=1 -I/home/alistair/.venvs/pyamg/local/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c' c++: pyamg/amg_core/amg_core_wrap.cxx g++: error: "-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0": No such file or directory g++: error: "-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0": No such file or directory error: Command "c++ -pthread -DNDEBUG -g -fwrapv -O2 -Wall -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security "-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0" -fPIC -D__STDC_FO RMAT_MACROS=1 -I/home/alistair/.venvs/pyamg/local/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c pyamg/amg_core/amg_core_wrap.cxx -o build/temp.linux-x86_64-2.7/pyamg/amg_core/amg_core_wrap.o" failed with exit status 1 ---------------------------------------- Command "/home/alistair/.venvs/pyamg/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-Cl5_2g/pyamg/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" insta ll --record /tmp/pip-kkjcoa-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/alistair/.venvs/pyamg/include/site/python2.7/pyamg" failed with error code 1 in /tmp/pip-build-Cl5_2g/pyamg
While with the characters " installation is completed successfully:
~$ CPPFLAGS="-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0" \ LIBS="-L/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0/stage/lib" \ pip install pyamg Collecting pyamg Using cached pyamg-3.0.1.tar.gz Installing collected packages: pyamg Running setup.py install for pyamg Successfully installed pyamg-3.0.1
The paths themselves do not matter - compilation succeeds despite the fact that these directories do not actually exist on my machine.
ali_m
source share