Python Forum
run "install pip" when I get ModuleNotFoundError?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
run "install pip" when I get ModuleNotFoundError?
#1
Hello,
wanted to know if there is a smart way to download when library is not exists?

for example :

try:
    import pandas as pd
except ModuleNotFoudError :
    print('No such libray - will download it no')
    # pip install pandas 
Reply
#2
I recommend reading this official documentation first Using pip from your program.
Reply
#3
Thank you
Reply


Forum Jump:

User Panel Messages

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