答案是不能再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 

最新文章

  1. SQL Server里的闩锁耦合(Latch Coupling)
  2. Java 使用线程方式Thread和Runnable,以及Thread与Runnable的区别
  3. Django admin 显示图片
  4. 如何创建一个Android项目
  5. UVA 10564 十 Paths through the Hourglass
  6. Java中List的使用
  7. Servlet视频学习笔记 57-58 (servlet入门和调用过程)
  8. SNMP监控一些常用OID的总结
  9. 读取app.config配置文件信息
  10. css 多栏自适应布局
  11. MySQL日志文件之错误日志和慢查询日志详解
  12. JavaEE学习路线
  13. 定制Three.js中Material属性
  14. 爬虫day 04(通过登录去爬虫 解决django的csrf_token)
  15. 谈谈调用腾讯云【OCR-通用印刷体识别】Api踩的坑
  16. parseInt ,parseDouble,parseFloat
  17. DRF 视图和路由
  18. RabbmitMQ-组成及简单使用
  19. 依赖: nginx-common (= 1.14.0-0ubuntu1) 但是它将不会被安装
  20. 第一阶段——站立会议总结DAY10

热门文章

  1. 爬楼梯,N级楼梯有多少种走法?
  2. Codeforces 989C - A Mist of Florescence
  3. [置顶] Linux学习总结(20)——Linux 文件夹结构和作用
  4. nyoj 113 字符串替换 (string中替换函数replace()和查找函数find())
  5. zoj 3812 状压dp
  6. HDU——2824 The Euler function
  7. Swift: 转换NSString to String
  8. POJ 1386 Play on Words(有向欧拉通路 连通图)
  9. 1. MaxCounters 计数器 Calculate the values of counters after applying all alternating operations: increase counter by 1; set value of all counters to current maximum.
  10. 1. PermCheck 桃花顺检验 Check whether array A is a permutation.