Ich habe wxPython 3.0.1.1
installiert, aber ich kann nicht import wx
mit Python 3.4.1
. Ich erhalte die folgende Fehlermeldung:Wie wxPython für Python 3 verwenden?
Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 00:54:21)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'wx'
Trotzdem kann ich import wx
wenn ich Python 2.7
(die Standard-Installation in meinem OS X 10.9
) verwenden:
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>>
Wie kann ich WxPython für Python 3 und speziell für Python 3.4.1?
Vielleicht müssen Sie den Standort des Moduls manuell hinzufügen zu 'sys. path': 'sys.path.insert ("/location/of/wx ")' Hier ist eine detailliertere Beschreibung: http://stackoverflow.com/questions/279237/import-a-module-from- a-relativer-Pfad – jotrocken
@jotrocken Wie kann ich es so machen, dass es dauerhaft ist? – Nick
http://stackoverflow.com/questions/3402168/permanently-add-a-directory-to-pythonpath – jotrocken