Не могу установить таблицы на Python - PullRequest
0 голосов
/ 01 декабря 2018

Я получаю сообщение об ошибке

Command "python setup.py egg_info" failed with error code 1 in C:\Users\HP\AppData\Local\Temp\pip-install-sv33cp8y\tables\

при попытке использовать

pip install tables

Я пробовал

pip install --upgrade setuptools

и многие другие вещи, новсе еще не могу заставить его работать.

Я получаю полную ошибку:

    Collecting tables
  Using cached https://files.pythonhosted.org/packages/4d/53/8f34ce887c2a2ad80518980419a5f6f41defc85a287a355987e559ce9385/tables-3.4.4.tar.gz
    Complete output from command python setup.py egg_info:
    * Using Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)]
    * USE_PKGCONFIG: False
    Traceback (most recent call last):
      File "c:\python37\lib\site-packages\setuptools\msvc.py", line 489, in _find_latest_available_vc_ver
        return self.find_available_vc_vers()[-1]
    IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\HP\AppData\Local\Temp\pip-install-5bjrxgs8\tables\setup.py", line 633, in <module>
    libraries=(package.library_name,))
  File "c:\python37\lib\distutils\ccompiler.py", line 791, in has_function
    objects = self.compile([fname], include_dirs=include_dirs)
  File "c:\python37\lib\distutils\_msvccompiler.py", line 345, in compile
    self.initialize()
  File "c:\python37\lib\distutils\_msvccompiler.py", line 238, in initialize
    vc_env = _get_vc_env(plat_spec)
  File "c:\python37\lib\site-packages\setuptools\msvc.py", line 185, in msvc14_get_vc_env
    return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
  File "c:\python37\lib\site-packages\setuptools\msvc.py", line 843, in __init__
    self.si = SystemInfo(self.ri, vc_ver)
  File "c:\python37\lib\site-packages\setuptools\msvc.py", line 485, in __init__
    self.vc_ver = vc_ver or self._find_latest_available_vc_ver()
  File "c:\python37\lib\site-packages\setuptools\msvc.py", line 492, in _find_latest_available_vc_ver
    raise distutils.errors.DistutilsPlatformError(err)
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

   ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\HP\AppData\Local\Temp\pip-install-5bjrxgs8\tables\

Я в основном пытаюсь преобразовать файл hdf5 в csv, и я простоне могу заставить его работать или что-то в данный момент.

1 Ответ

0 голосов
/ 02 декабря 2018

Возможно, проблема с разрешением.

Попробуйте:

sudo pip install --upgrade setuptools

Также см. Обсуждение здесь .У некоторых людей была эта проблема с версией Python.

...