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
braintree
braintree
braintree readthedocs
used in ecommerce order model
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.
浙公网安备 33010602011771号