【问题标题】:Python, install Pytables: ValueError: [u'path']Python,安装 Pytables: ValueError: [u'path']
【发布时间】:2016-06-01 00:13:20
【问题描述】:

我在 powershell (Windows) 中使用命令“pip install tables”来安装 Pytables。然而我收到了ValueError: [u'path']。 红色写着'Command "python setup.py egg_info" failed with error code 1'。 我已经安装了 miniconda。

编辑:完整的红色错误消息如下:

'Command "python setup.py egg_info" failed with error code 1 in c:\users\evert\appdata\local\temp\pip-build-9wkucl\tables
\'

在我的 pip install 命令和红色错误信息之间写如下:

Collecting tables
  Using cached tables-3.2.2.tar.gz
    Complete output from command python setup.py egg_info:
    * Using Python 2.7.11 |Continuum Analytics, Inc.| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)]
    * USE_PKGCONFIG: False
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\evert\appdata\local\temp\pip-build-9wkucl\tables\setup.py", line 553, in <module>
        libraries=(package.library_name,))
      File "c:\users\evert\miniconda2\lib\distutils\ccompiler.py", line 758, in has_function
        objects = self.compile([fname], include_dirs=include_dirs)
      File "c:\users\evert\miniconda2\lib\distutils\msvc9compiler.py", line 473, in compile
        self.initialize()
      File "c:\users\evert\miniconda2\lib\distutils\msvc9compiler.py", line 383, in initialize
        vc_env = query_vcvarsall(VERSION, plat_spec)
      File "c:\users\evert\miniconda2\lib\site-packages\setuptools-20.3-py2.7.egg\setuptools\msvc9_support.py", line 52,
 in query_vcvarsall
      File "c:\users\evert\miniconda2\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall
        raise ValueError(str(list(result.keys())))
    ValueError: [u'path']

缺少哪一部分?在运行'pip install tables' 之前我应该​​执行哪些步骤? 感谢您的帮助。

【问题讨论】:

  • 请发布你得到的完整错误。
  • 请在上面的消息中找到我的编辑。

标签: python pytables


【解决方案1】:

这是无法正确设置使用vcvarsall.bat 进行设置所需的某些环境变量的问题。您可以下载pytables here 的二进制文件,然后执行pip install tables-3.2.2-*.whl。请务必下载与您的版本和系统架构匹配的二进制文件。

【讨论】:

    猜你喜欢
    • 2023-03-25
    • 2023-04-05
    • 2014-03-03
    • 2012-03-18
    • 2011-06-25
    • 2014-12-17
    • 1970-01-01
    • 2015-10-21
    • 2012-06-16
    相关资源
    最近更新 更多