如何使用pip安装numpy [英] How to install numpy with pip

查看:257
本文介绍了如何使用pip安装numpy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Mac上安装numpy.

I'm trying to install numpy on my Mac.

我目前正在使用OS X 10.7.3和Python版本2.7(根据which python).

I'm currently using OS X 10.7.3 and Python version 2.7 (according to which python).

我在命令行中尝试了pip install numpy,它显示了:

I tried pip install numpy in the command line and it displayed:

找不到满足numpy要求的下载

Could not find any downloads that satisfy the requirement numpy

我必须更改我的Python版本吗?

Do I have to change my Python version?

推荐答案

您需要获取 Mac端口并执行:

sudo port install py27-numpy py27-scipy py27-matplotlib py27-ipython +notebook py27-pandas py27-sympy py27-nose

这篇关于如何使用pip安装numpy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆