0

我正在尝试安装 pytable,但首先我必须将 numpy 和 numexpr 安装到我的 Windows 7 机器上,我尝试安装 numexpr-2.2.2 这就是发生的情况

Warning: Assuming default configuration (numexpr\tests/{setup_tests,setup}.py was not found)Appending numexpr.tests configuration to numexpr
Ignoring attempt to set 'name' (from 'numexpr' to 'numexpr.tests')
running install
running bdist_egg
running egg_info
running build_src
build_src
building py_modules sources
building extension "numexpr.interpreter" sources
build_src: building npy-pkg config files
writing numexpr.egg-info\PKG-INFO
writing top-level names to numexpr.egg-info\top_level.txt
writing dependency_links to numexpr.egg-info\dependency_links.txt
reading manifest file 'numexpr.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'numexpr\__config__.py'
warning: no previously-included files found matching 'RELEASING.txt'
writing manifest file 'numexpr.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
copying build\src.win32-2.7\numexpr\__config__.py -> build\lib.win32-2.7\numexpr

running build_ext
No module named msvccompiler in numpy.distutils; trying from distutils
customize MSVCCompiler
customize MSVCCompiler using build_ext
No module named msvccompiler in numpy.distutils; trying from distutils
customize MSVCCompiler
Missing compiler_cxx fix for MSVCCompiler
customize MSVCCompiler using build_ext
building 'numexpr.interpreter' extension
compiling C sources
error: Unable to find vcvarsall.bat

有人能帮帮我吗,谢谢 :)

4

1 回答 1

1

你的机器上有什么 C++ 编译器?可能存在兼容性问题,具体取决于编译器。MinGW 的编译器应该适用于大多数 Python 模块。有关如何配置“distutils.cfg”文件以指定编译器位置的信息,请参阅此答案。(您可能还必须编辑系统环境变量 PATH 以便 Windows 在正确的位置找到您的编译器。)

希望通过 MinGW 和正确的 distutils 配置,您应该能够安装您的模块。

于 2015-01-25T05:47:43.657 回答