Ich habe gerade Anaconda 3.5 installiert. Terminal zeigt die richtige Version und hat sogar Continuum Analytics in Klammern:Kann numpy nicht importieren nach Anaconda installiert
Python 3.5.0 |Continuum Analytics, Inc.| (default, Oct 20 2015, 14:39:26)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Allerdings, wenn ich geben Sie den folgenden:
>>> import numpy
ich den Fehler:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'numpy'
Ich weiß, dass Anaconda kommt mit numpy (ich lief conda list
, nur um sicher zu gehen). Wer weiß was los ist?
Es scheint möglich, dass meine .bash_profile
etwas damit zu tun hat. Wenn ja, folgen die Inhalte.
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
# added by Anaconda3 2.3.0 installer
export PATH="/Users/username/anaconda/bin:$PATH"
# Setting PATH for Python 3.5
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH