1.安装numpy
①使用命令行安装 C:\Python27\Scripts>pip install numpy
②下载地址https://sourceforge.net/projects/numpy/files/NumPy/
下载zip格式到本地,解压后,命令行运行setup.py
出现如下错误:RuntimeError: Broken toolchain: cannot link a simple C program
进入Python27\Lib\distutils\msvc9compiler.py 文件中,找到
mfinfo = self.manifest_get_embed_info(target_desc, ld_args)
将其改为mfinfo=None
验证:
>>> import numpy
>>>
2.安装Scipy
①使用命令行安装 C:\Python27\Scripts>pip install scipy
②下载地址https://sourceforge.net/projects/scipy/files/scipy/