+ 1

How to use python command prompt?

import python packages

17th Jul 2017, 2:22 AM
Adam Bouras
Adam Bouras - avatar
7 Réponses
+ 4
In code playground you are limited to text output (command line scripts), and you cannot install any module... Panda isn't provided by sololearn as it use a GUI environment, not CLI ^^ Anyway, modules not provided by sololearn code playground cannot be installed, even if they are CLI modules ;P
17th Jul 2017, 1:14 PM
visph
visph - avatar
+ 3
Some modules are pre-installed so you've just to import them, but others aren't and need to be installed before able to be imported ^^ Panda library is probably not installed by default, so you must install it ;) (mostly you can use the Python installer 'pip' or install it through OS Installer -- exe on windows...)
17th Jul 2017, 12:53 PM
visph
visph - avatar
+ 2
To use Python command line interpreter, open a terminal (console -- for windows run 'cmd') and just execute 'python' without providing any script file name as parameter... However, 'python' can refer to any version of Python: you need also to be sure of the version used (usually Python3 is referenced as 'python3' when both versions are installed), wich is shown at start of command line interpreter ;) Obviously, it require to have python installed (mostly for windows users, as unix-like tend to have it preinstalled) and it's not possible in sololearn code playground ^^
17th Jul 2017, 9:01 AM
visph
visph - avatar
0
If you want to import modules use import nameofthemodule
17th Jul 2017, 6:50 AM
PierX
PierX - avatar
0
Thank you for the feedback. I was trying to import pandas package but it don't work.
17th Jul 2017, 12:47 PM
Adam Bouras
Adam Bouras - avatar
0
I am running python using Sololearn python cmd on my android phone. can I still use pip or install and get the pandas or other packages installed ?
17th Jul 2017, 12:57 PM
Adam Bouras
Adam Bouras - avatar
0
Thanks
17th Jul 2017, 1:23 PM
Adam Bouras
Adam Bouras - avatar