- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我正在尝试在 Lion OS 附带的预装 Python 2.6 上安装 numpy 和 scipy。
以下是我正在采取的具体步骤:
Downloading/unpacking numpy from <a href="http://pypi.python.org/packages/source/n/numpy/numpy-" rel="noreferrer noopener nofollow">http://pypi.python.org/packages/source/n/numpy/numpy-</a> 1.6.2.zip#md5=7e13c931985f90efcfa0408f845d6fee<p></p>
<p>Downloading numpy-1.6.2.zip (2.9Mb): 2.9Mb downloaded
Running setup.py egg_info for package numpy
Running from numpy source directory.non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2
blas_opt_info:
FOUND:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3)]
extra_compile_args = ['-msse3', '- I/System/Library/Frameworks/vecLib.framework/Headers']</p>
lapack_opt_info:
FOUND:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3)]
extra_compile_args = ['-msse3']
build_src
building py_modules sources
building library "npymath" sources
customize NAGFCompiler
Could not locate executable f95
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize GnuFCompiler
Could not locate executable g77
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno- common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall - Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes - DENABLE_DTRACE -arch i386 -arch x86_64 -pipe
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core - Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath - Inumpy/core/include - I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c'
llvm-gcc-4.2: _configtest.c
sh: llvm-gcc-4.2: command not found
sh: llvm-gcc-4.2: command not found
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/Users/MYUSERNAME/build/numpy/setup.py", line 214, in <module>
setup_package()
File "/Users/MYUSERNAME/build/numpy/setup.py", line 207, in setup_package
configuration=configuration )
File "/Users/MYUSERNAME/build/numpy/numpy/distutils/core.py", line 186, in setup
return old_setup(**new_attr)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 152, in setup
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 975, in run_commands
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 995, in run_command
File "/Users/MYUSERNAME/build/numpy/numpy/distutils/command/egg_info.py", line 8, in run
self.run_command("build_src")
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py", line 333, in run_command
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 995, in run_command
File "/Users/MYUSERNAME/build/numpy/numpy/distutils/command/build_src.py", line 152, in run
self.build_sources()
File "/Users/MYUSERNAME/build/numpy/numpy/distutils/command/build_src.py", line 163, in build_sources
self.build_library_sources(*libname_info)
File "/Users/MYUSERNAME/build/numpy/numpy/distutils/command/build_src.py", line 298, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/Users/MYUSERNAME/build/numpy/numpy/distutils/command/build_src.py", line 385, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 696, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
Complete output from command python setup.py egg_info:
Running from numpy source directory.non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2
blas_opt_info:
FOUND:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3)]
extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
lapack_opt_info:
FOUND:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3)]
extra_compile_args = ['-msse3']
running egg_info
running build_src
build_src
building py_modules sources
creating build
creating build/src.macosx-10.7-intel-2.6
creating build/src.macosx-10.7-intel-2.6/numpy
creating build/src.macosx-10.7-intel-2.6/numpy/distutils
building library "npymath" sources
customize NAGFCompiler
Could not locate executable f95
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize GnuFCompiler
Could not locate executable g77
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe
compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c'
llvm-gcc-4.2: _configtest.c
sh: llvm-gcc-4.2: command not found
sh: llvm-gcc-4.2: command not found
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/Users/MYUSERNAME/build/numpy/setup.py", line 214, in <module>
setup_package()
File "/Users/MYUSERNAME/build/numpy/setup.py", line 207, in setup_package
configuration=configuration )
File "/Users/MYUSERNAME/build/numpy/numpy/distutils/core.py", line 186, in setup
return old_setup(**new_attr)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 152, in setup
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 975, in run_commands
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 995, in run_command
File "/Users/MYUSERNAME/build/numpy/numpy/distutils/command/egg_info.py", line 8, in run
self.run_command("build_src")
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py", line 333, in run_command
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 995, in run_command
File "/Users/MYUSERNAME/build/numpy/numpy/distutils/command/build_src.py", line 152, in run
self.build_sources()
File "/Users/MYUSERNAME/build/numpy/numpy/distutils/command/build_src.py", line 163, in build_sources
self.build_library_sources(*libname_info)
File "/Users/MYUSERNAME/build/numpy/numpy/distutils/command/build_src.py", line 298, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/Users/MYUSERNAME/build/numpy/numpy/distutils/command/build_src.py", line 385, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 696, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /Users/MYUSERNAME/build/numpy
Storing complete log in /Users/MYUSERNAME/Library/Logs/pip.log
我非常感谢任何帮助/评论/指导。
最佳答案
您是否尝试过官方安装说明?
关于python - 使用 gfortran 支持为 Lion Python 2.6 构建 numpy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11817323/
去年我花了整整两天时间试图让 python-mysql 工作在我干净安装的 Lion 上,最后绝望地放弃了。升级到山狮后,我想我会再试一次,但没有成功。可能是我对 Lion 的所有尝试都搞砸了我的设置
我正在尝试让 WordPress 3.3.1 多站点(子域)在我的本地主机中工作。但是,我似乎需要为我的 Wordpress 虚拟主机配置通配符子域。我们的想法是让 any_subdomain.my_
我想在 osx lion 上安装 pyaudio,但我无法做到。每次我尝试使用 pkg 时,它都不会安装任何东西。当我尝试使用 pip 安装它时,出现以下错误(以及许多其他行): lipo: can'
我正在尝试让我在 Mountain Lion 上使用 Xcode 4.4 构建的 OS X 应用程序也能在 Lion 上运行。 将 OS X 部署目标设置为 10.7 没有帮助。该应用程序仍然无法在
我一直想用 Opa 弄脏我的手,但真的感觉缺少 REPL,这是我适应新语言的首选武器。瞧,Opa 博客提到了一个名为 opatop 的工具。看起来就是这样,但它似乎没有包含在标准的 Mac 或 Ubu
在 Lion 中打开窗口时,我遇到以下 EXC_BAD_INSTRUCTION 异常,但该应用在 Mountain Lion 中似乎工作正常。可能是什么问题? Process: MyA
我正在尝试在我的 mac 上使用本地服务器,但它似乎忽略了/etc/hosts 文件中的 localhost 设置。找到了几个页面,其中解决方案是重新安装,并将 localhost 放在/etc/ho
我最近升级到 Mountain Lion OSX,而我已经在工作的 MySql 停止工作了。当我尝试在终端中运行 MySql 时,我得到的是以下错误? ERROR 2002 (HY000): Ca
我有一个列表,当您将鼠标悬停在每个列表项上时,其中会显示一个按钮。该按钮位于每个列表项的右边缘。当列表不需要滚动时这很好用,但是当需要在带有隐藏滚动条的 Safari 中的 Lion/Mountain
我不太确定是什么原因造成的,但在 OSX 10.7.X 上当前稳定版的 safari 中,我只看到渲染了 3-4 帧。我下载了最新的 Safari 测试版,他们似乎改进了它,但它仍然掉落了大量的帧。
是否有任何工具可以分析 Mac OS X Lion 和 iOS 上的缓存未命中情况。如果您知道如何在乐器中做到这一点,请提供帮助。 Shark(CHUD 包)不安装在 Mac OS X Lion 及更
如果您创建一个普通项目并将其作为您的应用程序委托(delegate)的实现: @interface TESTAppDelegate () @property (nonatomic, strong) N
Network Link Conditioner 首选项面板(从 Apple 开发者网站上的“Hardware IO Tools for Xcode - Late July 2012”DMG 安装)在
我使用“ssh -X machine”连接到远程 Linux 计算机,然后运行图形应用程序,因此它的窗口使用 X Window 显示在我的本地 OS X Lion 计算机上。我收到错误 “Xlib:显
我从官方网站下载了 PostgreSQL 并运行了 .dmg 安装程序。之后我下载了 pgadmin3,我确实能够连接到数据库。 当我运行“psql”时,出现以下错误: psql: could not
我刚刚在我的雪豹安装上下载了 osx lion 更新。 Xcode 4.1 现在不会运行,因为它希望运行 Lion 版本。然而,当我去应用商店安装 Xcode 4.1 lion 时,它告诉我它已经安装
我能做到: sudo nano .bash_profile 但是当我这样做的时候: sudo echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bas
我正在制作一个使用山狮通知中心的应用程序。我包括对雪豹和狮子 growl 的支持。我该怎么做才能使二进制文件能够在两者上运行,而不需要 2 个单独的 .app 包。 最佳答案 我猜您会针对 Growl
我有一个使用 py2app 转换为捆绑应用程序的 python 脚本。手动调用时,它运行良好。但是,在 Mountain Lion 下,当我尝试使用 launchd 调用它时,系统日志中出现以下错误:
我正在迁移到一台新计算机,同时从雪豹迁移到狮子。 phpunit 似乎没有进行迁移,所以我重新安装了它。然而,pear 的标准安装似乎不适用于我的 php 家庭brew 安装。这是错误: phpuni
我是一名优秀的程序员,十分优秀!