+ 2
How to install Python libraries?
13 Antworten
+ 4
+ 5
https://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
+ 4
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
+ 1
Thanks
+ 1
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 You can hide warnings of pip upgrade
+ 1
Thanks
+ 1
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
+ 1
Go to terminal or powershell and type :- pip install "your package"
+ 1
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.
+ 1
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
0
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 this is to just disable pip upgrade check and not to update it
0
when you download python it will download
0
Using pip installer
pip --version
If it is preinstalled , it will display the version!
To download library :
pip install library_name