MAS*_*MAS 8 python compiler-errors quotation-marks pyamg
我正在尝试在我的虚拟环境中安装pyamg.但是,我收到以下错误.我正在使用mac OS.
c++: pyamg/amg_core/amg_core_wrap.cxx
clang: error: no such file or directory: '“-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0”'
clang: error: no such file or directory: '“-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0”'
error: Command "c++ -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE “-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0” -arch x86_64 -arch i386 -pipe -D__STDC_FORMAT_MACROS=1 -I/Users/mas/PycharmProjects/Whale/Zahraa5/lib/python2.7/site-packages/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pyamg/amg_core/amg_core_wrap.cxx -o build/temp.macosx-10.10-intel-2.7/pyamg/amg_core/amg_core_wrap.o" failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
事实上,我认为@oarfish在评论中正确地称呼它。问题似乎是这些路径中的有趣\xe2\x80\x9c和\xe2\x80\x9d字符,它们与通常的"双引号符号不同。
以下为我重现了该错误:
\n\n~$ CPPFLAGS=\xe2\x80\x9c-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0\xe2\x80\x9d \\\n LIBS=\xe2\x80\x9c-L/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0/stage/lib\xe2\x80\x9d \\\n pip install pyamg\n\nCollecting pyamg\n Downloading pyamg-3.0.1.tar.gz (759kB)\n 100% |\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88| 761kB 33.2MB/s \nInstalling collected packages: pyamg\n Running setup.py install for pyamg\n...\n creating build/temp.linux-x86_64-2.7\n creating build/temp.linux-x86_64-2.7/pyamg\n creating build/temp.linux-x86_64-2.7/pyamg/amg_core\n 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\'\n c++: pyamg/amg_core/amg_core_wrap.cxx\n g++: error: \xe2\x80\x9c-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0\xe2\x80\x9d: No such file or directory\n g++: error: \xe2\x80\x9c-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0\xe2\x80\x9d: No such file or directory\n error: Command "c++ -pthread -DNDEBUG -g -fwrapv -O2 -Wall -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security \xe2\x80\x9c-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0\xe2\x80\x9d -fPIC -D__STDC_FO\nRMAT_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 \nstatus 1\n\n ----------------------------------------\nCommand "/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\nll --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\nRun Code Online (Sandbox Code Playgroud)\n\n而与"符号则安装成功:
~$ CPPFLAGS="-I/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0" \\\n LIBS="-L/Users/mas/PycharmProjects/kaggle-ndsb/boost_1_59_0/stage/lib" \\\n pip install pyamg\nCollecting pyamg\n Using cached pyamg-3.0.1.tar.gz\nInstalling collected packages: pyamg\n Running setup.py install for pyamg\nSuccessfully installed pyamg-3.0.1\nRun Code Online (Sandbox Code Playgroud)\n\n路径本身是无关紧要的 - 尽管这些目录实际上并不存在于我的计算机上,但编译还是成功了。
\n| 归档时间: |
|
| 查看次数: |
829 次 |
| 最近记录: |