PIP Libraries
Verfasst: Donnerstag 2. Januar 2025, 21:52
Hallo zusammen,
ich habe schon vor Jahren unter Linux mit Python programmiert und das hat gut geklappt.
Jetzt würde ich gerne auch unter Windows 11 Python nutzen.
Ich kann aber leider keine Librariers mit PIP nutzen. Ich vermute hier Fehler in der Konfiguration der Umgebungsvariablen.
Beispielcode:
import matplotlib.pyplot as plt
import numpy as np
...
...
gibt den Fehler...
================================================= RESTART: S:\90-Matthias\90 Software Projekte\40 KI\prinzahlen.py ================================================
Traceback (most recent call last):
File "S:\90-Matthias\90 Software Projekte\40 KI\prinzahlen.py", line 2, in <module>
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'
Hier mein Stand:
- Python 3.7.9
- PIP funktioniert
- Library matplotlib ist erfoplgreich installiert
C:\Users\Matth>pip list
Package Version
----------------- -----------
cycler 0.11.0
fonttools 4.38.0
kiwisolver 1.4.5
matplotlib 3.5.3
numpy 1.21.6
packaging 24.0
Pillow 9.5.0
pip 24.0
pyparsing 3.1.4
python-dateutil 2.9.0.post0
six 1.17.0
typing_extensions 4.7.1
PATH Variablen...
Windows installiert Python hier sehr unübersichtlich. Ich werde aus der Struktur nicht wirklich schlau....
Ich habe gelesen, dass das Verzeichnis "../.../site-packages" wichtig ist, deshalb habe ich dieses hinzugefügt...
Ich habe auch einige weitere Pfade noch probiert - ohne Erfolg....
Hier vermute ich den Fehler... Bitte um Unterstützung...
C:\Users\Matth>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Sennheiser\SoftphoneSDK\;C:\Program Files\PuTTY\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Webex\Plugins;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\HP\HP One Agent;C:\Users\Matth\AppData\Local\Microsoft\WindowsApps;;C:\Program Files\Azure Data Studio\bin;C:\Users\Matth\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts;C:\Users\Matth\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages
Vielen Dank,
ich habe schon vor Jahren unter Linux mit Python programmiert und das hat gut geklappt.
Jetzt würde ich gerne auch unter Windows 11 Python nutzen.
Ich kann aber leider keine Librariers mit PIP nutzen. Ich vermute hier Fehler in der Konfiguration der Umgebungsvariablen.
Beispielcode:
import matplotlib.pyplot as plt
import numpy as np
...
...
gibt den Fehler...
================================================= RESTART: S:\90-Matthias\90 Software Projekte\40 KI\prinzahlen.py ================================================
Traceback (most recent call last):
File "S:\90-Matthias\90 Software Projekte\40 KI\prinzahlen.py", line 2, in <module>
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'
Hier mein Stand:
- Python 3.7.9
- PIP funktioniert
- Library matplotlib ist erfoplgreich installiert
C:\Users\Matth>pip list
Package Version
----------------- -----------
cycler 0.11.0
fonttools 4.38.0
kiwisolver 1.4.5
matplotlib 3.5.3
numpy 1.21.6
packaging 24.0
Pillow 9.5.0
pip 24.0
pyparsing 3.1.4
python-dateutil 2.9.0.post0
six 1.17.0
typing_extensions 4.7.1
PATH Variablen...
Windows installiert Python hier sehr unübersichtlich. Ich werde aus der Struktur nicht wirklich schlau....
Ich habe gelesen, dass das Verzeichnis "../.../site-packages" wichtig ist, deshalb habe ich dieses hinzugefügt...
Ich habe auch einige weitere Pfade noch probiert - ohne Erfolg....
Hier vermute ich den Fehler... Bitte um Unterstützung...
C:\Users\Matth>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Sennheiser\SoftphoneSDK\;C:\Program Files\PuTTY\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Webex\Plugins;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\HP\HP One Agent;C:\Users\Matth\AppData\Local\Microsoft\WindowsApps;;C:\Program Files\Azure Data Studio\bin;C:\Users\Matth\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts;C:\Users\Matth\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages
Vielen Dank,