使用pip安装spacy时出现错误(在mac python3下)。以下是错误报告的最后一部分。似乎有很多错误。我该如何解决?我已经安装了gcc。
gcc: warning: x86_64 conflicts with i386 (arch flags ignored)
cc1plus: warning: command line option '-Wno-strict-prototypes' is valid for C/ObjC but not for C++
g++-4.2 -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.6/thinc/linalg.o -o build/lib.macosx-10.6-intel-3.6/thinc/linalg.cpython-36m-darwin.so
unable to execute 'g++-4.2': No such file or directory
error: command 'g++-4.2' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
.......
/usr/local/bin/gcc -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -I/private/var/folders/md/8kgtqqz12j94hbcvhqz0w7gw0000gp/T/pip-build-sm84mnwa/murmurhash/murmurhash/include -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c murmurhash/mrmr.cpp -o build/temp.macosx-10.6-intel-3.6/murmurhash/mrmr.o -O3 -Wno-strict-prototypes -Wno-unused-function
gcc: warning: x86_64 conflicts with i386 (arch flags ignored)
gcc: error: murmurhash/mrmr.cpp: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command '/usr/local/bin/gcc' failed with exit status 1
----------------------------------------
Run Code Online (Sandbox Code Playgroud)
命令“ /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c”导入设置工具,标记化;文件 ='/ private / var / folders / md / 8kgtqqz12j94hbcvhqz0w7gw0000gp / T / pip-build-sm84mnwa / murmurhash / setup.py'; f = getattr(tokenize,'open',open)(file); code = f.read ().replace('\ r \ n','\ n'); f.close(); exec(compile(code,file,'exec'))“安装--record / var / folders / md / 8kgtqqz12j94hbcvhqz0w7gw0000gp /T/pip-4_7dl2wl-record/install-record.txt-“单一版本-外部管理-编译”失败,错误代码为/ private / var / folders / md / 8kgtqqz12j94hbcvhqz0w7gw0000gp / T / pip-build- sm84mnwa / murmurhash /
我真的不确定这是否相关,但我今天早上看到一个讨论,说最新的 macOS 升级 (Catalina) 完全放弃了对 32 位应用程序的支持。我之所以提到它是因为 x86_64 与 i386 冲突可能引用了 32 位/64 位问题。
您最近升级过 Mac 操作系统吗?如果是这样,也许您需要将依赖项升级到 64 位等效项?
| 归档时间: |
|
| 查看次数: |
709 次 |
| 最近记录: |