Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tables package for Python 3.9.1?

This is my first question on here. Thank you very much in advance for your support.

I'm using Python 3.9.1 on a 64-bit Windows 10 machine and I've been trying to install the tables package by pip install tables but I always got the following error:

pip install tables
Collecting tables
  Using cached tables-3.6.1.tar.gz (4.6 MB)
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\acer\appdata\local\programs\python\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-install-u9bkjlwp\\tables_8a3121807beb4fde8d73782dff1f349e\\setup.py'"'"'; __file__='"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-install-u9bkjlwp\\tables_8a3121807beb4fde8d73782dff1f349e\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Acer\AppData\Local\Temp\pip-pip-egg-info-9_t31x9b'
         cwd: C:\Users\Acer\AppData\Local\Temp\pip-install-u9bkjlwp\tables_8a3121807beb4fde8d73782dff1f349e\
    Complete output (17 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Acer\AppData\Local\Temp\pip-install-u9bkjlwp\tables_8a3121807beb4fde8d73782dff1f349e\setup.py", line 634, in <module>
        libdir = compiler.has_function(package.target_function,
      File "c:\users\acer\appdata\local\programs\python\python39\lib\distutils\ccompiler.py", line 792, in has_function
        objects = self.compile([fname], include_dirs=include_dirs)
      File "c:\users\acer\appdata\local\programs\python\python39\lib\distutils\_msvccompiler.py", line 323, in compile
        self.initialize()
      File "c:\users\acer\appdata\local\programs\python\python39\lib\distutils\_msvccompiler.py", line 220, in initialize
        vc_env = _get_vc_env(plat_spec)
      File "c:\users\acer\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 313, in msvc14_get_vc_env
        return _msvc14_get_vc_env(plat_spec)
      File "c:\users\acer\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 267, in _msvc14_get_vc_env
        raise distutils.errors.DistutilsPlatformError(
    distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    * Using Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
    * USE_PKGCONFIG: False
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/2b/32/847ee3f521aae6a0be380d923a736162d698586f444df1ac24b98c65025c/tables-3.6.1.tar.gz#sha256=49a972b8a7c27a8a173aeb05f67acb45fe608b64cd8e9fa667c0962a60b71b49 (from https://pypi.org/simple/tables/) (requires-python:>=3.5). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I don't understand the error message but I suspect that it has to do with my Python version.

I did install all the prerequisite packages suggested on the tables' homepage but I still got the error while installing the tables package.

I also tried to install with .whl file, too but there was no file with cp39 in its name (which led me to the conclusion that there's no compatible version for Python 3.9 yet, but I might be wrong.)

Is there a way to install tables with Python 3.9.1? Thank you very much.

like image 257
pkx8326 Avatar asked Feb 13 '21 16:02

pkx8326


People also ask

How do I install Python 3.9 modules?

You can install modules or packages with the Python package manager (pip). To install a module system wide, open a terminal and use the pip command. If you type the code below it will install the module. That will install a Python module automatically.

Does Python 3.9 support pip?

Once the path is added, open a fresh CMD window and type pip --version . Show activity on this post. I found that for Python 3.9 if you enter the command as py -m pip install , the installation initiates as expected.

Is pip a package in Python?

What is PIP? PIP is a package manager for Python packages, or modules if you like. Note: If you have Python version 3.4 or later, PIP is included by default.


1 Answers

I've downloaded and installed the tables-3.6.1-cp39-cp39-win_amd64.whl from this unofficial Windows binaries archive

Installed it with pip install tables-3.6.1-cp39-cp39-win_amd64.whl

update

The package was removed from the above link. I've found another source: pypi.bartbroe.re/tables/

like image 135
rainbringer Avatar answered Sep 18 '22 23:09

rainbringer