18 Answers
New Answer18 Answers
New Answerhttps://www.sololearn.com/discuss/1645722/?ref=app https://www.sololearn.com/discuss/2031049/?ref=app https://www.sololearn.com/discuss/2334616/?ref=app https://www.sololearn.com/discuss/1817719/?ref=app
go in your terminal or cmd and type: pip --version this will check if you have pip. If it doesnt say anythings missing type: pip install <your_choice_library> #like: pip install requests
Apurv Dhadankar Here's an example of installing non-existing module on Sololearn https://code.sololearn.com/cB4ppV3mas7J/?ref=app
First you have to cheak your pip version by this command in your python terminal or cmd pip -- version to download library:- pip install <any module> example: pip install pygame
I do pip3 install ... It makes clear, that the install is for python3. I hate it, if the librays start to mix. My programms, in ex Firefox still using Python2 code. But I use v3 to coding. All manual pip installs are only for Python3. Maybe think for your self, if you need a virtual enviroment for a project. All librarys are containered and do not cause conflicts.
In Windows,open command prompt and type this py -m pip install pygame In Ubuntu open terminal and type like this Pip install pygame In both cases,U can write the name of module instead of pygame
Using pip installer pip --version If it is preinstalled , it will display the version! To download library : pip install library_name
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message