5

当我尝试安装 scipy 时出现此错误:

ld: symbol(s) not found for architecture x86_64

error: Command "/opt/local/bin/g95 -shared -shared build/temp.macosx-10.8-intel-2.7/build/src.macosx-10.8-intel-2.7/scipy/interpolate/src/dfitpackmodule.o build/temp.macosx-10.8-intel-2.7/build/src.macosx-10.8-intel-2.7/fortranobject.o build/temp.macosx-10.8-intel-2.7/build/src.macosx-10.8-intel-2.7/scipy/interpolate/src/dfitpack-f2pywrappers.o -Lbuild/temp.macosx-10.8-intel-2.7 -lfitpack -o build/lib.macosx-10.8-intel-2.7/scipy/interpolate/dfitpack.so" failed with exit status 1

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/private/tmp/pip-build-root/scipy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-IUskjj-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/tmp/pip-build-root/scipy
Storing complete log in /Users/MyUser/Library/Logs/pip.log

我使用 mac 端口安装了 fortran 编译器 g95。使用 brew 安装不是一个选项。

命令是:

sudo pip install scipy
4

0 回答 0