Installation af bibliotek ved hjælp af pip i Python

Lad os installere biblioteket numpy ved hjælp af pip. Som standard downloader pip alle pakker globalt, dvs. dette bibliotek vil være tilgængeligt i alle arbejdsmapper.

Følgende kommando bruges til at installere numpy:

terminalpip install numpy

Efter en vellykket installation vil du se følgende besked:

terminalSuccessfully installed numpy-1.26.4

Lad os tjekke listen over installerede pakker igen:

terminalpip list

Nu vil det nye installerede bibliotek også blive vist i konsollen:

terminalPackage                Version
---------------------- -------
mysql-connector-python 8.2.0
numpy                  1.26.4
pip                    24.0
protobuf               4.21.12
setuptools             65.5.1
wheel                  0.38.4
Задание 1

Installer biblioteket matplotlib. Importer det til din arbejdsfil og test dets funktionalitet.

Задание 2

Installer biblioteket dateparser. Importer det til din arbejdsfil og test dets funktionalitet.