答案是不能再window上安装,答案如下:

Join Stack Overflow to learn, share knowledge, and build your career.

Email Sign UpOR SIGN IN WITH

 Google
 Facebook
 

When I tried to install ansible to my windows PC, stuck with following message.

    PS C:\Users\sungyong> pip install ansible
Collecting ansible
Downloading ansible-2.3.2.0.tar.gz (4.3MB)
100% |████████████████████████████████| 4.3MB 112kB/s
Requirement already satisfied: jinja2 in c:\program files\python36\lib\site-packages (from ansible)
Requirement already satisfied: PyYAML in c:\program files\python36\lib\site-packages (from ansible)
Collecting paramiko (from ansible)
Downloading paramiko-2.2.1-py2.py3-none-any.whl (176kB)
100% |████████████████████████████████| 184kB 286kB/s
Collecting pycrypto>=2.6 (from ansible)
Downloading pycrypto-2.6.1.tar.gz (446kB)
100% |████████████████████████████████| 450kB 187kB/s
Requirement already satisfied: setuptools in c:\program files\python36\lib\site-packages (from ansible)
Requirement already satisfied: MarkupSafe>=0.23 in c:\program files\python36\lib\site-packages (from jinja2->ansible)
Collecting pynacl>=1.0.1 (from paramiko->ansible)
Downloading PyNaCl-1.1.2-cp36-cp36m-win_amd64.whl (131kB)
100% |████████████████████████████████| 133kB 228kB/s
Requirement already satisfied: pyasn1>=0.1.7 in c:\program files\python36\lib\site-packages (from paramiko->ansible)
Collecting cryptography>=1.1 (from paramiko->ansible)
Downloading cryptography-2.0.3-cp36-cp36m-win_amd64.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 77kB/s
Collecting bcrypt>=3.1.3 (from paramiko->ansible)
Downloading bcrypt-3.1.3-cp36-cp36m-win_amd64.whl
Collecting cffi>=1.4.1 (from pynacl>=1.0.1->paramiko->ansible)
Downloading cffi-1.10.0-cp36-cp36m-win_amd64.whl (160kB)
100% |████████████████████████████████| 163kB 122kB/s
Requirement already satisfied: six in c:\program files\python36\lib\site-packages (from pynacl>=1.0.1->paramiko->ansible)
Requirement already satisfied: idna>=2.1 in c:\program files\python36\lib\site-packages (from cryptography>=1.1->paramiko->ansible)
Collecting asn1crypto>=0.21.0 (from cryptography>=1.1->paramiko->ansible)
Downloading asn1crypto-0.22.0-py2.py3-none-any.whl (97kB)
100% |████████████████████████████████| 102kB 152kB/s
Collecting pycparser (from cffi>=1.4.1->pynacl>=1.0.1->paramiko->ansible)
Downloading pycparser-2.18.tar.gz (245kB)
100% |████████████████████████████████| 256kB 147kB/s
Installing collected packages: pycparser, cffi, pynacl, asn1crypto, cryptography, bcrypt, paramiko, pycrypto, ansible
Running setup.py install for pycparser ... error
Exception:
Traceback (most recent call last):
File "c:\program files\python36\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str
return s.decode(sys.__stdout__.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbe in position 81: invalid start byte During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "c:\program files\python36\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "c:\program files\python36\lib\site-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,

File "c:\program files\python36\lib\site-packages\pip\req\req_set.py", line 784, in install **kwargs File "c:\program files\python36\lib\site-packages\pip\req\req_install.py", line 878, in install spinner=spinner, File "c:\program files\python36\lib\site-packages\pip\utils__init__.py", line 676, in call_subprocess line = console_to_str(proc.stdout.readline()) File "c:\program files\python36\lib\site-packages\pip\compat__init__.py", line 75, in console_to_str return s.decode('utf_8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbe in position 81: invalid start byte

Is ansible available at windows environment? If yes, how can I fix this installation problem?

asked Aug 14 '17 at 5:41
sungyong

304214
 

Ansible is not supported on windows, but you can use a workaround(though not recommended), using Cygwin. Read about it here.

answered Aug 14 '17 at 6:33
Some1Else

38415
 
    
This gives a way to do it with a Linux VM running in VirtualBox (see 00:41 to 00:53 from here). – W R Oct 25 

怎么在windows上安装 ansible How to install ansible to my python at Windows的更多相关文章

  1. 在 Windows 上安装 TensorFlow(转载)

    在 Windows 上安装 TensorFlow windows下配置安装Anaconda+tensorflow Spyder——科学的Python开发环境 Windows7 安装TensorFlow ...

  2. 在Windows上安装Elasticsearch 5.0

    在windows上安装Elasticsearch Elasticsearch可以使用.zip软件包安装在Windows上. elasticsearch-service.bat命令,它将设置Elasti ...

  3. 在 Windows 上安装Rabbit MQ 指南

    rabbitMQ是一个在AMQP协议标准基础上完整的,可服用的企业消息系统.他遵循Mozilla Public License开源协议.采用 Erlang 实现的工业级的消息队列(MQ)服务器. Ra ...

  4. 在Windows上安装虚拟机详细图文教程

    用虚拟机来安装最新的软件,安装最新的系统等等比较保险,可以避免安装不顺利影响自己原来的系统和应用,想尝鲜又担心自己完全更换系统不适应的朋友可以尝试. 虚拟机下载:https://yunpan.cn/c ...

  5. 在windows上安装ASP.NET 5(译文)

    本文将介绍如何在windows上安装ASP.NET5,包括单独安装和通过Visual Studio 2015 安装. 本文包括: 通过Visual Studio安装ASP.NET 单独安装ASP.NE ...

  6. python环境搭建-在Windows上安装python3.5.2

    在Windows上安装Python3.5.2 首先,根据你的Windows版本(64位还是32位)从Python的官方网站下载Python 3.5.2对应的64位安装程序或32位安装程序(网速慢的同学 ...

  7. windows上安装apache python mod_python

    综述:   windows上安装apache python mod_python的例子.教程甚至图解都不少:但作为新手还是会出错,而且一时无法快速排解. 在此笔者将根据自己的实践经验,给出几个需要注意 ...

  8. (转)如何在Windows上安装多个MySQL

    原文:http://www.blogjava.net/hongjunli/archive/2009/03/01/257216.html 如何在Windows上安装多个MySQL 本文以免安装版的mys ...

  9. (转)在 Windows 上安装Rabbit MQ 指南

    rabbitMQ是一个在AMQP协议标准基础上完整的,可服用的企业消息系统.他遵循Mozilla Public License开源协议.采用 Erlang 实现的工业级的消息队列(MQ)服务器. Ra ...

  10. Redis简介以及如何在Windows上安装Redis

    Redis简介 Redis是一个速度非常快的非关系型内存数据库. Redis提供了Java,C/C++,C#,PHP,JavaScript,Perl,Object-C,Python,Ruby,Erla ...

随机推荐

  1. ajax加载本地html文件出现 XMLHttpRequest cannot load的问题

    谷歌浏览器ajax加载本地html文件出现 XMLHttpRequest cannot load的问题(火狐中不会出现这问题) Cross origin requests are only suppo ...

  2. Codeforces Round #544 (Div. 3) Editorial C. Balanced Team

    http://codeforces.com/contest/1133/problem/Ctime limit per test 2 secondsmemory limit per test 256 m ...

  3. HDU 1234 简单模拟题

    题目很简单不多说了,我只是觉得这题目的输入方式还是很有特点的 #include <cstdio> #include <cstring> #include <algorit ...

  4. bzoj 1664 (贪心)

    [Usaco2006 Open]County Fair Events 参加节日庆祝 Time Limit: 5 Sec  Memory Limit: 64 MBSubmit: 487  Solved: ...

  5. poj——1330 Nearest Common Ancestors

    Nearest Common Ancestors Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 30082   Accept ...

  6. Ubuntu 16.04添加阿里云源/163源

    添加国内源有个好处,比如下载软件时直接时国内的服务器,速度有保证. 以下是操作方法: 1.备份 sudo cp /etc/apt/sources.list /etc/apt/sources.list. ...

  7. vue2源码浏览分析01

    1.构造函数  Vue$3 function Vue$3 (options) { if ("development" !== 'production' && !(t ...

  8. 基于FFI模块CAPI与JavaScript的各种类型匹配总结

    0.写在前面: 1)涉及的关键词定义: 传入:JavaScript向CAPI传值 传出:CAPI向JavaScript传值 2)关于类和结构体的封装,需要严格执行内存对齐,以防止读取越界,但是避免不了 ...

  9. ubuntu16.04 卸载 php7并安装php5.6记录

    ubuntu16.04版本从默认源安装的php版本为7.x版本,我们都知道php7.0已经舍弃了很多旧版本的函数等内容,这对旧系统来说是致命的,那么,我们就有了安装旧版php的需求,而同一主机安装两个 ...

  10. 使用jcaptcha插件生成验证码

    1.从官网http://jcaptcha.sourceforge.net/下载插件.将对应jar包导入到lib文件夹下 2.创建一个CaptchaServiceSingleton类用来获取jcaptc ...