I need some help to install modules in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

I need some help to install modules in python

Import os From os import system system(“pip install module”) BUT THE OUTPUT TELLS AFTER THE INSTALLATION THAT THIS MODULE IS NOT INSTALLED

22nd May 2022, 11:58 AM
𝐍𝐈𝐙𝐀𝐑
𝐍𝐈𝐙𝐀𝐑  - avatar
1 Answer
+ 2
I think this problem is related to virtual environment. Use sys.executable to ensure that you will call the same pip associated with the current runtime. refer : https://stackoverflow.com/a/50255019
22nd May 2022, 1:29 PM
Vinit Sonawane
Vinit Sonawane - avatar