Trouble importing tabulate in Python 3.4

廉价感情. 提交于 2020-01-01 15:56:53

问题


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.


回答1:


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




回答2:


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

pip3 install tabulate



回答3:


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



来源:https://stackoverflow.com/questions/31757552/trouble-importing-tabulate-in-python-3-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!