Harry Potter
Harry Potter

Reputation: 181

Trouble importing tabulate in Python 3.4

I have just installed tabulate for python in order to tabulate my output in the terminal. When ever i try to import tabulate into python 3.4, it gives me an error saying

ImportError: No module named 'tabulate'

But, whenever I import it into a python2.7 console it seems to work. Can you please help me try to get this to work in python 3.4. My OS is linux.

Upvotes: 7

Views: 57277

Answers (4)

Jacek Chojnacki
Jacek Chojnacki

Reputation: 11

On Mac using Homebrew

brew reinstall python-tabulate

may help. I had this problem after updating platformio. This solved the problem.

Upvotes: 1

Payam Chychi
Payam Chychi

Reputation: 181

for python3 i've noticed the simple "pip3 install tabulate" does not put the lib in proper locations.

for python3:

python3 -m pip install tabulate

Upvotes: 18

mohamed sleymi
mohamed sleymi

Reputation: 1

You have to open the cmd as admin to install tabulate, it works for me

Upvotes: 0

Harry Potter
Harry Potter

Reputation: 181

ok just fixed it by intalling python-pip3, and installed tabulate via

pip3 install tabulate

Upvotes: 9

Related Questions