我正在尝试安装 pytable,但首先我必须将 numpy 和 numexpr 安装到我的 Windows 7 机器上,我试图安装 numexpr-2.2.2 这就是发生的事情
Warning: Assuming default configuration (numexprtests/{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-infoPKG-INFO
writing top-level names to numexpr.egg-infotop_level.txt
writing dependency_links to numexpr.egg-infodependency_links.txt
reading manifest file 'numexpr.egg-infoSOURCES.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-infoSOURCES.txt'
installing library code to buildbdist.win32egg
running install_lib
running build_py
copying buildsrc.win32-2.7numexpr__config__.py -> buildlib.win32-2.7numexpr
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
有人可以请我嘿嘿,谢谢:)
你的机器上有什么C++编译器? 可能存在兼容性问题,具体取决于编译器。 MinGW的编译器应该适用于大多数Python模块。 有关如何配置"distutils.cfg"文件以指定编译器的位置,请参阅此答案。 (您可能还必须编辑系统环境变量 PATH,以便 Windows 在正确的位置找到您的编译器。
希望使用 MinGW 和正确的 distutils 配置,您应该能够安装您的模块。