0
我已经在我的电脑上使用此网页(https://www.continuum.io/downloads)安装了Python 2.7(Windows 7 with 64位)。最后,当我在我的新单元中尝试下面的程序时,它不起作用。所以我想我应该安装numpy和mathplotlib软件包。我实际上尝试了pip install numpy matplotlib
,它说它已经满意了。但是,它还没有奏效。我怎样才能安装或使用pip
?谢谢。在Windows 7(64位)上为Python 2.7安装matplotlib软件包
import numpy as np
import scipy
from scipy import special
import matplotlib.pyplot as plt
%matplotlib inline
x = np.linspace(0, 10, 100)
fig, ax = plt.subplots()
for n in range(4):
ax.plot(x, scipy.special.jn(n, x),
label=r"$J_%d(x)$" % n)
ax.legend();
是的,它适用于'matplotlib'。但对于'numpy'和'scipy'来说,它是不为人知的。我能在这里做什么?谢谢。 – Userabc
@Userabc这很奇怪。我有Anaconda 2.5.0与Python 3.5,64位,当我输入'> conda install numpy'我回来了'使用Anaconda Cloud api站点https://api.anaconda.org 获取包元数据:.... 解决包装规格:......... #已安装所有要求的包装。 #环境中的C:\ Anaconda3#: # numpy 1.10.4 py35_0' –
@Userabc这意味着我已经安装'numpy'前一段时间了。你收到什么信息? –