Ich wollte wieder auf ein altes Skript "compounding.py", welches Pylab benötigt, zurückgreifen, aber leider läuft das nicht.
Das Python-Skript:
Code: Alles auswählen
import pylab
principal = 26951.11
interestrate = 0.1316
years = 22
values = []
for i in range(years + 1):
values.append(principal)
principal += principal * interestrate
print principal
print i
pylab.plot(values)
pylab.show()
Code: Alles auswählen
Code: Alles auswählen
%run "C:\Users\Paul\Weiterbildung\edX\6.00.1x Files\Pylab\compounding.py"
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
C:\Users\Paul\Weiterbildung\edX\6.00.1x Files\Pylab\compounding.py in <module>()
----> 1 import pylab
2
3 principal = 26951.11
4 interestrate = 0.1316
5 years = 22
C:\Users\Paul\AppData\Local\Enthought\Canopy\User\lib\site-packages\pylab.py in <module>()
C:\Users\Paul\AppData\Local\Enthought\Canopy\User\lib\site-packages\matplotlib\__init__.py in <module>()
C:\Users\Paul\AppData\Local\Enthought\Canopy\User\lib\site-packages\matplotlib\rcsetup.py in <module>()
C:\Users\Paul\AppData\Local\Enthought\Canopy\User\lib\site-packages\matplotlib\colors.py in <module>()
C:\Users\Paul\AppData\Local\Enthought\Canopy\User\lib\site-packages\numpy\__init__.py in <module>()
C:\Users\Paul\AppData\Local\Enthought\Canopy\User\lib\site-packages\numpy\add_newdocs.py in <module>()
C:\Users\Paul\AppData\Local\Enthought\Canopy\User\lib\site-packages\numpy\lib\__init__.py in <module>()
C:\Users\Paul\AppData\Local\Enthought\Canopy\User\lib\site-packages\numpy\lib\type_check.py in <module>()
C:\Users\Paul\AppData\Local\Enthought\Canopy\User\lib\site-packages\numpy\core\__init__.py in <module>()
ImportError: No module named multiarray
Mein Betriebssystem ist Windows 7, 64 bit. Ich weiss nicht, wie ich die Version oder Versionen von Python einfach aufrufe.
Python 2.7.6 | 64-bit | (default, Sep 15 2014, 17:36:35) [MSC v.1500 64 bit (AMD64)] on win32
IDLE ist glaube ich, bin mir nicht sicher, in 32 und 64 bit installiert.
Enthought Canopy ist Version 64 bit.
Unter Systemsteuerung\Programme\Programme und Funktionen kann ich Python und IDLE nicht finden.
Daher weiss ich nicht wie ich beispielsweise komplett alles deinstalliere und wieder neu mit z.B. 64 bit installiere.
Ich weiss nicht wie ich das Problem effizient und strukturiert löse.
Vielen Dank