Python Tools

Python

virtualenv、fabric 和 pip 是 pythoneer 的三大神器

pip

pip
pip是一个安装和管理Python包的工具,是easy_install的一个替换品
离线安装

>python setup.py install

fabric

virtualenv

一、安装

官方文档: https://virtualenv.pypa.io/en/latest/
下载地址:https://pypi.python.org/pypi/virtualenv#downloads
福利: https://virtualenv-chinese-docs.readthedocs.org/en/latest/

离线安装

>python setup.py virtualenv

pip安装

pip install virtualenv

默认情况下,虚拟环境会依赖系统环境中的site packages,就是说系统中已经安装好的第三方package也会安装在虚拟环境中,

如果不想依赖这些package,那么可以加上参数
--no-site-packages 

二、创建虚拟环境

>virtualenv lwc

or

mkdir lwc
virtualenv .

创建成功后,会在当前目录下生成对应的目录文件。
虚拟环境创建好了之后,检查一下安装了哪些package

>pip freeze
>
chardet==2.3.0
Django==1.5.5
MySQL-python==1.2.3
south==0.8.4
virtualenv==13.1.2

三、启动虚拟环境

lwc>Scripts\activate
(lwc) D:\virtualdir\lwc>

四、退出虚拟环境

(lwc) D:\virtualdir\lwc>deactivate
D:\virtualdir\lwc>

django-toolbelt

它由以下几部分组成。

  • Django
  • Gunicorn (WSGI服务器)
  • dj-database-url (一个Django配置工具)
  • dj-static (一个Django静态文件服务器)

django

安装django1.8,它会卸载当前版本(1.5)安装1.8

pip install django==1.8

django-filter

django-filter
Django-filter is a reusable Django application for allowing users to filter querysets dynamically.

django-registration-redux

django-registration-redux

braintree

braintree
braintree readthedocs
used in ecommerce order model

django-crispy-forms

django-crispy-forms

turbogears

一站式的Python开发框架集合

easy_install.exe -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools  
pip install tg.devtools

webfaction dependencies

Pillow
pillow readthedocs
requests
requests readthedocs
Python HTTP for Humans.
Requests is an Apache2 Licensed HTTP library, written in Python, for human beings.

转载于:https://www.cnblogs.com/2dogslife/p/5763431.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值