【发布时间】:2016-07-06 14:16:00
【问题描述】:
我已经使用此网页 (https://www.continuum.io/downloads) 在我的 PC(带有 64 位的 Windows 7)上安装了 Python 2.7。最后,当我在我的新单元格中尝试以下程序时,它不起作用。所以我想我应该安装 numpy 和 mathplotlib 包。我实际上尝试了pip install numpy matplotlib,它说它已经很满意了。但是,它还没有奏效。如何使用pip 替代安装?谢谢。
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();
【问题讨论】:
标签: python windows python-2.7 anaconda conda