+ 9

Pip install not working ๐Ÿ˜ฃ

When I try to install any module on code playground it says to upgrade pip... But when I upgrade pip the rest of the code doesn't work... https://code.sololearn.com/ctAY5Upmexrl/?ref=app If you comment out line 12 you will see the error๐Ÿ˜ฅ What should I do...?๐Ÿ™

12th Aug 2020, 6:01 PM
Shreyansh
Shreyansh - avatar
19 Answers
+ 7
[user id=12767781]Shreyansh[/user] upgrading pip is not really a problem. Installing will occur just fine without the upgrade. But still installing 3 packages will take a lot of time Also, you can use an app like PyDroid or termux to use python. There you can install any packagae as they are installed on your local storage.
13th Aug 2020, 6:26 AM
XXX
XXX - avatar
+ 7
It is a guess, but seems perfectly logical that upgrading pip is taking time, and as SoloLearn stops execution after a certain amount of time, the rest of the code is never executed.
12th Aug 2020, 6:23 PM
XXX
XXX - avatar
+ 6
[user id=18109487]Namit Jain[/user] that is because we are still installing 3 packages which obviously take enough time for SoloLearn to stop execution. If we remove lines 12 through 16, the line gets printed. Furthur proof, try removing every install and upgrade except for install("gcloud") (I tried only gcloud, the others will work too I guess), the line still gets printed
12th Aug 2020, 7:43 PM
XXX
XXX - avatar
+ 6
XXX what will I do with gcloud... I want firebase ๐Ÿ˜“ which requires python_jwt module which requires gcloud to be installed... SL should ugrade their pip๐Ÿ˜” But for now.. [user id="18109487"]Namit Jain[/user] Do you know any platform where I can upload my python code and generate a link... ๐Ÿ˜œ
13th Aug 2020, 4:48 AM
Shreyansh
Shreyansh - avatar
+ 5
XXX Nice! But remove the line 12 still the line 17 is not printing
12th Aug 2020, 6:39 PM
Namit Jain
Namit Jain - avatar
+ 5
without upgrading pip bt still installing this three packages ๐Ÿ˜ข https://code.sololearn.com/cl5p4Jhjti70/?ref=app
13th Aug 2020, 5:04 AM
SR โ€‹
SR โ€‹ - avatar
+ 5
SRโ€Ž It works but I want firebase ๐Ÿ˜ญ which requires the python_jwt module which requires gcloud... ๐Ÿ˜‚
13th Aug 2020, 5:14 AM
Shreyansh
Shreyansh - avatar
+ 4
SRโ€Ž But it's only one ๐Ÿ‘ฆ
13th Aug 2020, 5:06 AM
Namit Jain
Namit Jain - avatar
+ 4
Namit Jain yes i m showing tht evn without pip upgradation u can't. sl should have these packages pre installd
13th Aug 2020, 5:10 AM
SR โ€‹
SR โ€‹ - avatar
+ 2
Shreyansh Hehe ๐Ÿ‘ฆ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚
13th Aug 2020, 5:01 AM
Namit Jain
Namit Jain - avatar
+ 2
Thanks [user id=2789505]AKSHAY[/user] ๐Ÿ™๐Ÿ‘
8th Sep 2020, 7:11 AM
Mystic
Mystic - avatar
+ 1
Reinstall and check 'ADD TO PATH' during installation
13th Aug 2020, 4:49 PM
๐–†๐–™.๐–š๐•ท
๐–†๐–™.๐–š๐•ท - avatar
+ 1
pip install --upgrade pip
14th Aug 2020, 5:25 AM
Rajni Kant Mahato
Rajni Kant Mahato - avatar
+ 1
Aathmaj Add these lines to your code to install a specific module in your code import os os.system("pip install module_name") Or check this code https://code.sololearn.com/c1wEYq71mzeb/?ref=app
8th Sep 2020, 6:35 AM
AKSHAY๐Ÿ‡ฎ๐Ÿ‡ณ
AKSHAY๐Ÿ‡ฎ๐Ÿ‡ณ - avatar
0
Try this bro. pip install --upgrade pip Then you can install a package pip install name-of-package
14th Aug 2020, 9:29 AM
Zech Bron
Zech Bron - avatar
0
Hey @Shreynash, Itโ€™s not working for me too. I also tried pip install --upgrade pip. Not working๐Ÿ˜ญ
15th Aug 2020, 8:47 AM
Mystic
Mystic - avatar
0
Don't worry bro, the tide is about to turn. Start by opening a command line(in cmd). Type in the following "py -m pip install -U + module + --user". For example, If I want to install the emoji module, you can do it like this in cmd: py -m pip install -U emoji --user. All this on Windows CMD. Thanks.
7th Sep 2020, 9:37 PM
Codsco
0
[user id=19575660]Codsco[/user] How do I open cmd in Iphone? Or is there a cmd in the code playground?
8th Sep 2020, 2:45 AM
Mystic
Mystic - avatar
0
Aathmaj, you can try this:(For Iphone) 1. Press to launch or open " Cyndia" on your Iphone's Springboard. 2. Once it opens, press "Install" from the section at the bottom of the screen. 3. Select " Terminal support" from the list. 4. Press or select "MobileTerminal" from the list section. 5. Press the " Install" button at the top right of the screen. 6. Select the "Confirm" button to begin the installation. 7. Once the installation process has completed successfully, press the "Close Window" button. 8. Press the Home button to return to your Springboard. Observe the new mobile terminal icon? Press to launch it. Thanks.
8th Sep 2020, 10:26 PM
Codsco