ec2instancespricing
ec2instancespricing copied to clipboard
ImportError: No module named 'prettytable'
I have installed pretty table but it is showing this error.
ImportError: No module named 'prettytable'
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.
@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.
you should upgrade your pip.
$pip install PrettyTable
$python -m pip install --upgrade pip
and in your code just add : from prettytable import PrettyTable
Thats not work for me
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.
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
pip3 install https://pypi.python.org/packages/source/P/PrettyTable/prettytable-0.7.2.tar.bz2
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.
if you are using ubuntu
sudo apt update sudo apt install python3-prettytable
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)
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 https://github.com/erans/ec2instancespricing/issues/49#issuecomment-1198905391, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACUE6WOODZKFCH2PAXQ4TVWNWM7ANCNFSM4CYFTOIA . You are receiving this because you were mentioned.Message ID: @.***>
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 < https://github.com/erans/ec2instancespricing/issues/49#issuecomment-1198905391 , 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 https://github.com/erans/ec2instancespricing/issues/49#issuecomment-1199607968, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2DD4FTNBH2FEKH5JUNDRJDVWP5PLANCNFSM4CYFTOIA . You are receiving this because you commented.Message ID: @.***>
https://github.com/ahmedabdulwhhab/SDN-RYU-Mininet-Path/tree/main/A9khan_A_Whhab_Traffic_Classifier MAIN PACKAGES ARE sudo apt update sudo apt install python3-prettytable.
more data can be viewed under https://github.com/ahmedabdulwhhab/SDN-RYU-Mininet-Path/blob/main/A9khan_A_Whhab_Traffic_Classifier/README.md
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