Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem importing module
#1
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
Reply
#2
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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
I have the same error again :/ .

I will take a look at click thank you !
Reply
#4
(Jul-25-2018, 08:27 AM)PierreSoulier Wrote: I have the same error again :/ .
check https://github.com/pypa/pip/issues/5599
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  problem with memory_graph module akbarza 3 371 Mar-04-2024, 10:15 AM
Last Post: snippsat
  importing variables from module 8376459 1 286 Feb-18-2024, 02:24 PM
Last Post: deanhystad
  problem using coloeama module akbarza 3 580 Jan-08-2024, 07:31 AM
Last Post: akbarza
  no module named 'docx' when importing docx MaartenRo 1 885 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  problem in using subprocess module akbarza 5 1,037 Sep-24-2023, 02:02 PM
Last Post: snippsat
  problem in import module from other folder akbarza 5 1,435 Sep-01-2023, 07:48 AM
Last Post: Gribouillis
  problem in using pyqrcode module to create QRcode akbarza 9 1,983 Aug-23-2023, 04:17 PM
Last Post: snippsat
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 1,015 May-15-2023, 02:38 PM
Last Post: tonynapoli2309
  Problem with importing python-telegram library into the project gandonio 1 1,576 Nov-01-2022, 02:19 AM
Last Post: deanhystad
  My code displays too much output when importing class from a module lil_e 4 1,159 Oct-22-2022, 12:56 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020