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:
pip install numpy
Efter en vellykket installation vil du se følgende besked:
Successfully installed numpy-1.26.4
Lad os tjekke listen over installerede pakker igen:
pip list
Nu vil det nye installerede bibliotek også blive vist i konsollen:
Package 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
Installer biblioteket matplotlib. Importer det til din arbejdsfil og test dets funktionalitet.
Installer biblioteket dateparser. Importer det til din arbejdsfil og test dets funktionalitet.