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.
The Python error "ModuleNotFoundError: No module named 'tabulate'" occurs for multiple reasons: Not having the tabulate package installed by running pip install tabulate . Installing the package in a different Python version than the one you're using. Installing the package globally and not in your virtual environment.
Type "cmd" in the search bar and hit Enter to open the command line. Type “ pip install tabulate ” (without quotes) in the command line and hit Enter again. This installs tabulate for your default Python installation. The previous command may not work if you have both Python versions 2 and 3 on your computer.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With