numpy wird nicht erkannt
Verfasst: Sonntag 20. Dezember 2020, 18:04
Hallo, ich versuche nun schon die ganze Zeit über, dass ich numpy zum Laufen bekommen, aber es klappt einfach nicht, obwohl es erfolgreich installiert ist.
Was habe ich vergessen?
----- Installing 'numpy' -----
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
# All requested packages already installed.
----- Successfully installed 'numpy' -----
----- Installing 'numpy' -----
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
# All requested packages already installed.
----- Successfully installed 'numpy' -----
Was habe ich vergessen?
Code: Alles auswählen
from math import radians
import numpy as np # installed with matplotlib
import matplotlib.pyplot as plt
def main():
x = np.arange(0, radians(1800), radians(12))
plt.plot(x, np.cos(x), 'b')
plt.show()
main()
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
# All requested packages already installed.
----- Successfully installed 'numpy' -----
----- Installing 'numpy' -----
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
# All requested packages already installed.
----- Successfully installed 'numpy' -----