Python Forum

Full Version: Import Error: No module named 'tables'
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there, 

after trying to run a python file I got this error:

Error:
Import Error: No module named 'tables'
and that is after executing the command:

from tables import *
Can you tell me how to install this library on my windows 10 and Python 3.4?

Thank you.
Open a command prompt and enter
pip3 install tables
(Oct-12-2016, 06:36 PM)Yoriz Wrote: [ -> ]Open a command prompt and enter
pip3 install tables

I did. 

I got this:

'pip3' is not recognized as an internal or external command,

operable program or batch file.
(Oct-12-2016, 06:31 PM)kentman234 Wrote: [ -> ]Can you tell me how to install this library on my windows 10 and Python 3.4?

What’s New In Python 3.4 pip should always be available
Python Docs Wrote:Window users will need to opt in to the automatic PATH modifications to have pip available from the command line by default, otherwise it can still be accessed through the Python launcher for Windows as py -m pip.
You can find the pre-compiled version at http://www.lfd.uci.edu/~gohlke/pythonlibs/#pytables

Note that it requires 'numexpr' which in return requires 'numpy'
(Oct-12-2016, 06:44 PM)kentman234 Wrote: [ -> ]'pip3' is not recognized as an internal or external command,
Here without setting environment Variables Path,which i will show later.
From cmd cd into in C:\Python34\Scripts
Output:
C:\Windows\System32>cd\ C:\>cd python34\scripts C:\Python34\Scripts>
First update pip.
Output:
C:\Python34\Scripts>pip install --upgrade pip Requirement already up-to-date: pip in c:\python34\lib\site-packages
All wheel you download place them in C:\Python34\Scripts folder.
First install from gohlke Numexrp
Eg for 32-bit python pip install numexpr-2.6.1-cp34-cp34m-win32.whl

Now download from Pytables,you need wheel or a complier is needed(Pytables has C extension).
Eg for 32-bit python pip install tables-3.3.0-cp34-cp34m-win32.whl

Set up environment Variables Path so pip and python command work from anywhere in cmd.
Watch this Video
You do the same but to Path you add: ;C:\python34\;C:\python34\scripts
Restart and test pip/python from anywhere in cmd.