在 Anaconda 中安装 enaml

Installing enaml in Anaconda

我正在尝试为最新的 Anaconda 发行版 (4.3.1) 安装 enaml。 http://nucleic.github.io/enaml/docs/get_started/installation.html 上的安装指南说:

The sections below describe how to install Enaml and all of its dependencies from scratch, starting with the installation of a Python runtime. The instructions assume that the user’s system has a C++ compiler and the Git command line tools installed and available on the system path.

The Easy Way

If installing and building Enaml and its dependencies from scratch is not appealing, the free (and unaffiliated) Anaconda Python distribution provides a complete Python environment which comes with a reasonably recent version of Enaml and a host of other useful packages.

If you have a working C++ compiler, you can install using pip:

$ pip install enaml

你能告诉我安装 C++ 编译器和 Git 命令行工具并使它们在系统路径上可用的最简单方法吗?

我尝试了什么: 我尝试安装 Visual Studio 但结果是 32 位,所以当 pip 安装 enaml 或 atom 时出现以下错误:

atom 的构建轮失败

致命错误 LNK1112:模块机器类型 'x64' 与目标机器类型冲突 'X86'

安装显示如何从头开始的 Microsoft Visual C++ Compiler for Python 2.7 and run pip install enaml again. There's also a tutorial here Python GUI's with enaml

conda install enaml 是在 anaconda 中安装包的比 pip install 更惯用的方式,至少对于它知道的包来说是这样。 Enaml 和 Atom 都在这个列表中。

这会绕过 C++ 编译,因此它可能不是您想要的,但这是安装 Enaml 的最简单方法。 (在从源代码构建方面,我不太擅长,所以 Anaconda 对我来说效果很好。)