测试 Scipy;get "在 numpy.distutils 中没有名为 msvccompiler 的模块;从 distutils 尝试" [英] Testing Scipy; get "No module named msvccompiler in numpy.distutils; trying from distutils"

查看:37
本文介绍了测试 Scipy;get "在 numpy.distutils 中没有名为 msvccompiler 的模块;从 distutils 尝试"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过安装 nose 并输入

I'm trying to test my scipy install by installing nose and entering

import scipy
scipy.test('1','10')

我收到了大约 200 个错误,但其中一个更常见的是:

I get some 200 errors but one of the more common is:

.... No module named msvccompiler in numpy.distutils; trying from distutils
Missing compiler_cxx fix for MSVCCompiler

我安装了 MS Virtual Studio 2009(python 2.7 需要)

I have MS Virtual Studio 2009 installed (required for python 2.7)

谁能帮我消除那个错误或告诉我为什么不能?

Can anyone help me eliminate that error or tell my why I can't?

谢谢

推荐答案

最好的解决方案是使用 Anaconda Python 发行版

Best solution to this could be using the Anaconda Python distribution

它拥有大部分工程和数据分析包,并自动设置C++编译器的路径.您可以使用 Anaconda 轻松安装 numpy、scipy、matplotlib 等.它不会显示 vcvarshall.bat 以及 numpy.core.multiarray 错误 numpy

It has most of the engineering and data analysis packages and automatically sets path of the C++ compiler. You can easily install numpy, scipy, matplotlib etc. using Anaconda. It will not show vcvarshall.bat as well as numpy.core.multiarray error for numpy

这篇关于测试 Scipy;get "在 numpy.distutils 中没有名为 msvccompiler 的模块;从 distutils 尝试"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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