Hallo, bin relativ neu mit Python bzw. MacOS. Verwende bisher Python2.6, und habe aus bestimmten Gründen neulich Python2.7 zusätzlich auf mein MacOS (10.6.8) installiert. Seither passiert ein komischer Fehler (OK, vielleicht war das auch schon immer so, glaub aber nicht). z.B. wenn ich das random-Modul importieren will, oder jetzt gerade ipython installieren wollte:
$ python ipython.py
Traceback (most recent call last):
File "ipython.py", line 21, in <module>
this_dir, 'IPython', 'scripts', 'ipython'
File "IPython/scripts/ipython", line 5, in <module>
from IPython.frontend.terminal.ipapp import launch_new_instance
File "IPython/__init__.py", line 43, in <module>
from .config.loader import Config
File "IPython/config/loader.py", line 27, in <module>
from IPython.utils.path import filefind, get_ipython_dir
File "IPython/utils/path.py", line 19, in <module>
import tempfile
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/tempfile.py", line 34, in <module>
from random import Random as _Random
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/random.py", line 45, in <module>
from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ImportError: dlopen(/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/math.so, 2): Symbol not found: __PyLong_AsScaledDouble
Referenced from: /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/math.so
Expected in: flat namespace
in /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/math.so
Was tu ich jetzt?
1) Deinstallieren (wie geht das sauber? Einfach Unterverzeichnis löschen?) und dann neu installieren? Wird das gehen, ich will ja jetzt mein Python 2.7 haben, und dann wird Python2.6 wieder als Default auf den python-Pfad gesetzt?
2) Modul suchen (wo?, ich weiß ja nicht mal, was genau python haben will), und nur dies nachinstallieren?
3) Python2.6 einfach ersatzlos löschen? Dann kann aber sein, dass die alten Projektchen mit Python2.6 nicht mehr funktionieren.
Wer weiß da Rat? Wäre echt hilfreich!! Allmählich will ich nicht mehr so kleine Sachen in Eclipse machen, da jedes Mal ein File für anlegen ist albern.
Danke!!