pip安装pyfasttext时出现Mojave Xcode libstdc ++问题

时间:2018-11-13 11:29:41

标签: python xcode macos gcc

升级到Mojave后,我在Xcode中遇到了很多问题。我已经搜索过我遇到的问题,但是到处都有说明太模糊而无法解决它。有人告诉将libstdc ++ td文件复制到Applications / Xcode,但不说在哪里找到这些文件。一些告诉删除libstdc ++文件。有人说将旧文件复制到新文件。有人说要修改CXXFLAGS(对我不起作用)...等等。

尝试在iTerm2中执行pip install pyfasttext时遇到的问题如下:

gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -iquote . -include src/custom_exit.h -Isrc -I/anaconda3/envs/prometheus/lib/python3.6/site-packages/cysignals -I. -Isrc/variant/include -I/anaconda3/envs/prometheus/include/python3.6m -I/anaconda3/envs/prometheus/lib/python3.6/site-packages/numpy/core/include -c src/pyfasttext.cpp -o build/temp.macosx-10.7-x86_64-3.6/src/pyfasttext.o -Wno-sign-compare -std=c++0x warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]

-std=libc++选项添加到gcc的简单方法是什么?还是有更好的解决方案?

编辑:

安装较旧的命令行工具部分解决了该问题,直到我遇到了一个新问题: src/pyfasttext.cpp:607:10: fatal error: 'random' file not found #include <random>

Macintosh非常有趣。

0 个答案:

没有答案
相关问题