How to check that the anaconda package was properly installed

后端 未结 4 1379
慢半拍i
慢半拍i 2020-12-15 18:20

I\'m completely new to Python and want to use it for data analysis. I just installed Python 2.7 on my mac running OSX 10.8. I need the NumPy, SciPy, matplotlib and csv packa

4条回答
  •  被撕碎了的回忆
    2020-12-15 18:33

    You can determine which version of python you are running when you get the error by looking at the results of which python from the commandline. It is likely that you are running the system version (although recent versions Mac OS X include numpy in its system python), rather than Anaconda's python distribution. If this is the case, you need to modify your PATH as suggested by Anaconda at the end of the install process. Assuming it was installed in ~/anaconda, you would need to add something like:

    export PATH=$HOME/anaconda/bin:$PATH
    

    to your .bash_profile

提交回复
热议问题