проблемы с установкой pytables

Я пытаюсь установить 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

МОЖЕТ КТО-НИБУДЬ ПОДСКАЖИТЕ МНЕ ПОЖАЛУЙСТА, СПАСИБО :)


person dmb    schedule 25.01.2015    source источник


Ответы (1)


Какой компилятор С++ у вас стоит на машине? В зависимости от компилятора могут быть проблемы с совместимостью. Компилятор MinGW должен работать с большинством модулей Python. См. этот ответ, чтобы узнать, как настроить файл distutils.cfg для указания местоположения компилятора. (Возможно, вам также придется отредактировать переменную системной среды PATH, чтобы Windows нашла ваш компилятор в нужном месте.)

Надеемся, что с MinGW и правильной конфигурацией distutils вы сможете установить свой модуль.

person davewy    schedule 25.01.2015
comment
Я уверен, что делаю неправильно, но я устанавливаю компилятор mingw и создаю файл cfg внутри папки disutils и пытаюсь снова установить numexpr, и вот что я получил [код] «gcc» не распознается как внутренний или внешний команду, исполняемую программу или пакетный файл. Сборка библиотеки msvcr: C:\Python27\libs\libmsvcr90.a (из C:\Windows\winsxs\ x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\msvcr9 0.dll) ошибка: [Ошибка 2] Система не может найти файл указанный - person dmb; 25.01.2015
comment
Вы пытаетесь установить из исходников или используете pip? Есть также двоичные файлы, которые вы можете попробовать: lfd.uci.edu/~gohlke /pythonlibs/#pytables , или, если вас устраивает готовое бинарное решение, code.google.com/p/pythonxy - person davewy; 25.01.2015