Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/299.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在macOS中编译pip包;“大苏尔”;和python 3.8:“;ld:未知选项:-b符号“;_Python_Linker Errors_Macos Big Sur - Fatal编程技术网

无法在macOS中编译pip包;“大苏尔”;和python 3.8:“;ld:未知选项:-b符号“;

无法在macOS中编译pip包;“大苏尔”;和python 3.8:“;ld:未知选项:-b符号“;,python,linker-errors,macos-big-sur,Python,Linker Errors,Macos Big Sur,我尝试在macOS Big-Sur上安装Python 3.8 conda环境 我已经使用Dedalus作者推荐的方法安装了环境 在安装过程中,pip启动的编译失败 x86_64-apple-darwin13.4.0-clang -bundle -undefined dynamic_lookup -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/dima/sw/conda/env

我尝试在macOS Big-Sur上安装Python 3.8 conda环境

我已经使用Dedalus作者推荐的方法安装了环境

在安装过程中,pip启动的编译失败

  x86_64-apple-darwin13.4.0-clang -bundle -undefined dynamic_lookup -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/dima/sw/conda/envs/rwth09/lib -L/Users/dim
a/sw/conda/envs/rwth09/lib -flto -Wl,-export_dynamic -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/dima/sw/conda/envs/rwth09/lib -L/Users/dima/sw/conda/envs
/rwth09/lib -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/dima/sw/conda/envs/rwth09/lib -L/Users/dima/sw/conda/envs/rwth09/lib -march=core2 -mtune=haswell -
mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/dima/sw/conda/envs/rwth09/include -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -isystem /Users/dima/sw/co
nda/envs/rwth09/include -arch x86_64 build/temp.macosx-10.9-x86_64-3.8/dedalus/libraries/fftw/fftw_wrappers.o -L/Users/dima/sw/conda/envs/rwth09/lib -L/Users/dima/sw/conda/envs/rwth09/lib -L/Us
ers/dima/sw/conda/envs/rwth09/lib -L/Users/dima/sw/conda/envs/rwth09/lib -lfftw3_mpi -lfftw3 -lm -o build/lib.macosx-10.9-x86_64-3.8/dedalus/libraries/fftw/fftw_wrappers.cpython-38-darwin.so -X
linker -Bsymbolic -Wl,--whole-archive /Users/dima/sw/conda/envs/rwth09/lib/libfftw3.a /Users/dima/sw/conda/envs/rwth09/lib/libfftw3_mpi.a -Wl,--no-whole-archive                                 
  ld: unknown option: -Bsymbolic                                                                                                                                                                 
  clang-10: error: linker command failed with exit code 1 (use -v to see invocation)                                                                                                             
  error: command 'x86_64-apple-darwin13.4.0-clang' failed with exit status 1
有人知道如何解决这个问题吗

于2021年1月15日更新。问题的解决方案是安装clang 11,而不是由
conda
自动安装的clang 10。

来自:

-b符号
标志。。。特定于使用ELF二进制格式的GNU链接器和平台。OSX两者都不使用


我认为您应该报告使用
-Bsymoblic
标志将Dedalus软件构建为Mac bug。

我自己没有Mac,但您为什么不尝试在上下载python 3.9.1呢。我真的不知道这是否会在Big Sur上运行,但是,你可以试试。

是的,谢谢,感觉安装脚本使用的编译器(x86_64-apple-darwin13.4.0-clang)不适用于新的macOS。我认为
x86_64-apple-darwin13.4.0-clang
应该是正确的编译器。我认为问题在于他们使用的是编译器不支持的标志。我更喜欢使用conda提供的Python。可能相关: