Probleme mit QSToolKit Installation Guide Windows

Probleme bei der Installation?
Antworten
fkdjsdf
User
Beiträge: 3
Registriert: Donnerstag 17. April 2014, 08:59

Ich bin dem QSToolKit Installation Guide Windows auf
http://wiki.quantsoftware.org/index.php ... de_Windows
gefolgt, um QSToolKit (QSTK), is a Python-based open source software framework designed to support portfolio construction and management. zu installieren.
Leider ist diese Anleitung und mein Installationsversuch fehlgeschlagen. Der Einzige Punkt, der sich von der Anleitung unterscheidet ist, dass ich Canopy 1.3.0 64 bit verwende.
Mein Betriebssystem ist Windows 8 64 bit.
Ich habe auch vergeblich im abgesicherten Modus versucht zu installieren, aber leider ohne Erfolg.
Als ich ein älteres Skript mit Pylab Import verwenden wollte, lief auch das nicht mehr.
Es sieht so aus:

import pylab

pylab.figure(1)
pylab.plot([1, 2, 3, 4], [1, 7, 3, 5])
pylab.show()


Die Fehlermeldung erscheint folgendermassen:
%run "C:/Users/Paul/Weiterbildung/edX/6.00.1x Files/Pylab/plot1.py"
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
C:\Users\Paul\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.3.0.1715.win-x86_64\lib\site-packages\IPython\utils\py3compat.pyc in execfile(fname, glob, loc)
195 else:
196 filename = fname
--> 197 exec compile(scripttext, filename, 'exec') in glob, loc
198 else:
199 def execfile(fname, *where):

C:\Users\Paul\Weiterbildung\edX\6.00.1x Files\Pylab\plot1.py in <module>()
----> 1 import pylab
2
3 pylab.figure(1)
4 pylab.plot([1, 2, 3, 4], [1, 7, 3, 5])
5 pylab.show()

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

Vielen Dank
Benutzeravatar
cofi
Python-Forum Veteran
Beiträge: 4432
Registriert: Sonntag 30. März 2008, 04:16
Wohnort: RGFybXN0YWR0

Deine 64-Bit Vermutung ist richtig: Alle verlinkten Installer sind 32-bit und passen somit nicht zu deiner 64-bit Python-Version. Die einfachste Variante ist wahrscheinlich die Python-Version zu wechseln.
fkdjsdf
User
Beiträge: 3
Registriert: Donnerstag 17. April 2014, 08:59

Guten Tag cofi,

ein Jahr habe ich Python nicht mehr verwendet.
Ich wollte wieder auf ein altes Skript "compounding.py", welches Pylab benötigt, zurückgreifen, aber leider läuft das nicht.
Als ich nach der Problemlösung im Internet suchte bin ich wieder auf dieses Forum und exakt meinen Beitrag gestossen. :)

Das Python-Skript:
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()

Der Output sieht folgendermassen aus:
%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.
Ich kann mich an Deinen Rat und meine Vermutung bezüglich 32 bit und 64 bit erinnern.
Aber ich weiss trotzdem nicht wie ich das Problem effizient und strukturiert löse.
Vielen Dank
Antworten