一句话:$ sudo apt-get install fabric
以下的不用看了。
我是个python 盲,近期一个项目的部署要用到fabric,所以记录一下步骤:
1. 先安装pip (估计类似于rubygem)
http://www.pip-installer.org/en/latest/installing.html
$ curl -O https://raw.github.com/pypa/virtualenv/master/virtualenv.py
$ python virtualenv.py my_new_env
2. 再安装 fabric
$ . my_new_env/bin/activate
(my_new_env)$ pip install fabric
结果遇到问题:
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/src
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-i686-2.7/src/MD2.o
src/MD2.c:31:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
google了一下, 原来是少了deb包,
$ sudo aptitude install python2.7-dev
然后再:
(my_new_env)$ pip install fabric
Successfully installed pycrypto
Cleaning up...
可是运行 fab 却不成功。 查看了下官方文档,fabric只支持pythong 2.5, 2.6 ,不支持2.4 以及3.0
$ sudo apt-get install fabric
搞定。
分享到:
相关推荐
ubuntu安装svn步骤及所需文件
ubuntu安装qt步骤.doc
Ubuntu安装thingsboard详细步骤
zabbix-ubuntu安装详细步骤部署
ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9
详细介绍 ubuntu的安装步骤和安装设置,帮助那些不懂ubuntu的小屁孩们 应该有人下载吧
该资源详细说明了Ubuntu操作系统的在虚拟机上 详细安装过程,
在虚拟机Ubuntu上,部署hyperledger fabric 的环境搭建
ubuntu安装mysql5.6完整步骤说明(亲测实用).docx
linux实验一ubuntu的安装步骤.pdf
Ubuntu安装nvidia驱动步骤 1、ctrl+alt+F1进入命令行界面,输入用户名:xxxx,用户密码:xxxx。 2、关闭所有使用 GPU 的进程:sudo systemctl isolate multi-user.target 3、卸载原始驱动:sudo modprobe -r ...
ubuntu16.04安装gstreamer的的步骤
VMware_Workstation 虚拟机安装 ubuntu 的详细步骤,初学者必会。 VMware_WorksVMware_Workstation虚拟机安装ubuntu的详细步骤.tation虚拟机VMware_Workstation虚拟机安装ubuntu的详细步骤.安装ubuntu的详细步骤. ...
Ubuntu下安装gamma软件的步骤,gamma软件为SAR图像干涉处理的经典软件之一,只支持在Linux系统下运行
Ubuntu安装jdk环境 Ubuntu安装jdk环境 Ubuntu安装jdk环境
ubuntu16.04安装chrome浏览器,包括google-chrome-stable_current_amd64的压缩包和安装步骤
该文档主要是对ubuntu server 安装的一个大致过程
VMware_WorksVMware_Workstation虚拟机安装ubuntu的详细步骤.tation虚拟机VMware_Workstation虚拟机安装ubuntu的详细步骤.安装ubuntu的详细步骤.
ubuntu系统中使用离线源码安装包进行安装wireshark 安装详细步骤,以及安装过程中遇到的问题和解决方案
微软雅黑字体6.0 及 Ubuntu 上的安装步骤 1. 6个ttc字体可能是 6.0 版本的, msyh.ttf 是老版本的 2. VistaFont_CHS文件夹是 VistaFont_CHS.exe解压出来的, 里边有两个ttf文件。 可能也是老版本的。 3. others,...