Seite 1 von 1

Python import pandas

Verfasst: Mittwoch 6. Februar 2019, 12:26
von mastermind
Hallo

ich bin noch ganz am Anfang meiner Python Karriere und nicht mal die klappt. Ich habe mir über die cmd numpy und Pandas installiert. Was auch geklappt zu haben scheint.

PS C:\Users\aesa\AppData\Local\Programs\Python\Python37\Scripts> .\pip3 install numpy
Requirement already satisfied: numpy in c:\users\aesa\appdata\local\programs\python\python37\lib\site-packages (1.16.1)

Wenn ich jetzt allerdings in mein Python Projekt Pandas oder numpy importieren möchte werden die Module nicht gefunden.

C:\Users\aesa\PycharmProjects\Finance\venv\Scripts\python.exe C:/Users/aesa/PycharmProjects/Finance/FinanceManager.py
Traceback (most recent call last):
File "C:/Users/aesa/PycharmProjects/Finance/FinanceManager.py", line 1, in <module>
import numpy
ModuleNotFoundError: No module named 'numpy'

Ich gehe davon aus , dass ich bezüglich des Pfades irgendetwas falsch gemacht habe weiß jedoch leider nicht was.

Ich freue mich shcon auf eure Antworten. Danke :)

gr Mastermind

Re: Python import pandas

Verfasst: Mittwoch 6. Februar 2019, 12:49
von sparrow
Offensichtlich rufst du 2 verschiedene Python-Installationen auf, wie man gut an den Pfaden sehen kann.
PyCharm legt wohl für ein Projekt eine virtuelle Umgebung an. Dann musst du da auch das Modul installieren.

Re: Python import pandas

Verfasst: Mittwoch 6. Februar 2019, 13:06
von mastermind
peinlich... jetzt klappts auch.....danke