Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named 'prettytable' #49

Open
apoorvup07 opened this issue Dec 1, 2016 · 14 comments
Open

ImportError: No module named 'prettytable' #49

apoorvup07 opened this issue Dec 1, 2016 · 14 comments

Comments

@apoorvup07
Copy link

I have installed pretty table but it is showing this error.

ImportError: No module named 'prettytable'

@erans
Copy link
Owner

erans commented Dec 1, 2016

prettytable might not be in your path. How did you install it?

Try running python without anything from the same path as ec2instancespricing.py and write import prettytable. If it fails, the Python interpreter can't find it.

@Dawny33
Copy link

Dawny33 commented Apr 17, 2017

@erans Possible to replace PrettyTable with some other lib/package? I can confirm that there is some issue with prettytable. Attached the screenshot for your ref.

image

@L-KH
Copy link

L-KH commented Sep 12, 2019

you should upgrade your pip.

$pip install PrettyTable
$python -m pip install --upgrade pip

and in your code just add : from prettytable import PrettyTable

@okanyesil
Copy link

Thats not work for me

@igarag
Copy link
Contributor

igarag commented Feb 2, 2021

With the following command the problem is solved (at least for me):

pip install prettytable

I launched the command inside a virtual environment with Python 3.8.

@s1997himanshu
Copy link

I have installed pretty table but it is showing this error.

ImportError: No module named 'prettytable'

try to install using anaconda prompt it worked for me -- pip install prettytable

@sujitrp
Copy link

sujitrp commented May 1, 2021

pip3 install https://pypi.python.org/packages/source/P/PrettyTable/prettytable-0.7.2.tar.bz2

@momado350
Copy link

try using Base Python env. I was trying inside an env even if it is installed sometimes does not work inside your own envs. just use Python3 in your kernel, do pip install prettytable then import it.

@ahmedabdulwhhab
Copy link

if you are using ubuntu

sudo apt update
sudo apt install python3-prettytable

@2masa
Copy link

2masa commented Jul 29, 2022

iam already install pretty table but my terminal show this error:cannot import name 'PrettyTable' from partially initialized module 'prettytable' (most likely due to a circular import)

@erans
Copy link
Owner

erans commented Jul 29, 2022 via email

@2masa
Copy link

2masa commented Jul 30, 2022 via email

@ahmedabdulwhhab
Copy link

@ahmedabdulwhhab
Copy link

Thanks for the. Solution On Fri, 29 Jul, 2022, 9:27 PM Eran Sandler, @.> wrote:

Do you have prettytable installed anywhere else? On Thu, Jul 28, 2022 at 10:51 PM 2masa @.
> wrote: > iam already install pretty table but my terminal show this error:cannot > import name 'PrettyTable' from partially initialized module 'prettytable' > (most likely due to a circular import) > > — > Reply to this email directly, view it on GitHub > < #49 (comment) >, > or unsubscribe > < https://github.com/notifications/unsubscribe-auth/AAACUE6WOODZKFCH2PAXQ4TVWNWM7ANCNFSM4CYFTOIA > > . > You are receiving this because you were mentioned.Message ID: > @.> > — Reply to this email directly, view it on GitHub <#49 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2DD4FTNBH2FEKH5JUNDRJDVWP5PLANCNFSM4CYFTOIA . You are receiving this because you commented.Message ID: @.>

first of all ,
you should know where you are using prettytable
if you are under ubuntu as my case , use
sudo apt install prettytable

if you are under conda, use
conda install prettytable

under python/pycharm
pip install prettytable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests