python3 numpy mac,Mac OSx 10.8上IDLE(Python 3.3.2)中的NumPy

I know this may be a repeat question, but all the answers I've found on here are WAY above my head. I'm very new at Python, but I would like to use NumPy in IDLE (python 3.3.2). IDLE doesn't seem to access the numpy that comes w/ OSX 10.8 (which is python 2.7). I can't find a Numpy for Python 3 installer for Mac OSX. All of the instructions I've found are very complicated and assume I know a lot more than I do and they still wouldn't help me get it into IDLE even if I could execute them. Can anyone point me to instructions for BEGINNERS on this installation? For example, most start with a compiling step - I'm not sure how to do this. I'd appreciate any help you can give. Thanks.

解决方案

If this is a fresh python install:

Type which python into a terminal window to make sure that the correct python is selected. I am guessing that this should be /Library/Frameworks/Python.framework/Versions/3.3.

Download setuptools and pip from https://pypi.python.org and untar both (can just double click in a osx window).

In a terminal change directory to the downloaded setuptools folder: cd ~/Downloads/setuptools-x.x.x

Type python setup.py install.

Repeat 3 & 4 for pip.

Now you can type pip install numpy and it will download and install numpy for you.

You might want to install everything through a single executable package. A free example can be found here (Anaconda), this includes the entire scipy suite and some extras. You will likely not need the majority of these, but it does include numpy and scipy in a very convenient package.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值