【发布时间】:2018-03-23 00:43:23
【问题描述】:
我刚刚安装了带有 Python 和数据科学工作负载的 Visual Studio Community。
我从 Python\Machine Learning 模板创建了一个新的回归项目。
前几行是:
from pandas import read_table
import numpy as np
import matplotlib.pyplot as plt
首先我得到错误:No module named xxx 或 Missing required dependencies [xxx],对于 pandas 或 numpy,或 scikitlearn 或 scipy。
我原以为这些会作为 Visual Studio 工作负载的一部分安装,实际上它们似乎在 Anaconda3\Lib\sitpackages 文件夹中,如果它们应该在哪里的话。但我还是尝试从 VS 的 Python 环境窗口安装它们。
如果我很幸运,那么我会通过上述错误来解决这个问题:Importing the multiarray numpy extension module failed.。
有人知道如何设置吗?
【问题讨论】:
标签: python visual-studio anaconda visual-studio-2017