Python Forum

Full Version: Problem importing module
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I want to use the progressbar module. It is not installed in my library so i've tried:

sudo pip3 install progressbar

But i get this error in return:

Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
ImportError: cannot import name 'main'
Do you have any idea from where this could come from?

Thank you
try pip3 install progressbar2 as per the docs/project description https://pypi.org/project/progressbar2/
also, if you are working CLI scripts, check click - very handy to create nice CLI interface and it comes batteries included - own progress bar functionality, among many other useful things

some examples in this thread by snippsat
I have the same error again :/ .

I will take a look at click thank you !
(Jul-25-2018, 08:27 AM)PierreSoulier Wrote: [ -> ]I have the same error again :/ .
check https://github.com/pypa/pip/issues/5599