首页 > 解决方案 > 为什么我的 pip3 Ansible 安装失败?在 /tmp/pip_build_root/cryptography 中失败,错误代码为 1

问题描述

在我的流浪虚拟机上

sudo pip3 install ansible

这没用

Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-2wl0xdne-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/cryptography
Storing debug log for failure in /home/vagrant/.pip/pip.log

我不明白。/home/vagrant 目录实际上在哪里?如何解决这个问题?

Python3版本

vagrant@vagrant-ubuntu-trusty-64:~$ python3 --version
Python 3.4.3

标签: pythonpython-3.xansiblevagrant

解决方案


推荐阅读