2016-10-03 107 views
0

首先一些基本的细节:通过皮普在Windows 7上安装Ansible获取ValueError异常

操作系统:Windows 7家庭64

相关库安装:

的.NET Framework 4.0,Windows SDK中(以有视觉C++ 2010编译器)

的Python:3.4(试过32和64位,同样的问题)

PIP:6.0.8

我试图(通过命令提示符)安装Ansible,但我得到的错误:

File "C:\Python34\lib\distutils\msvc9compiler.py", line 287, in query_vcvarsall 
raise ValueError(str(list(result.keys()))) 
ValueError: ['path'] 

Command "C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\<myname>\\AppData\\Local\\Temp\\pip-build-bxrpw5rf\\cffi\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\myname>\AppData\Local\Temp\pip-z1_s87va-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\<myname>\AppData\Local\Temp\pip-build-bxrpw5rf\cffi 

到目前为止,我自己的谷歌搜索没有打开任何东西,我可以分辨出相关与这个特定的解决方案案件。有没有人遇到过这个?

回答

0

我想你是在你自己的这里,因为在Ansible中没有对Python 3的支持,也没有Windows作为控制机器。

Control Machine Requirements

Currently Ansible can be run from any machine with Python 2.6 or 2.7 installed (Windows isn’t supported for the control machine).

Note Python 3 is a slightly different language than Python 2 and some Python programs (including Ansible) are not switching over yet.

有在Windows下Cygwin一些成功案例与Ansible。