pip命令
pip的意思是破蛋而出,继承了python的思维,呵呵~python的包有以egg命名的,意思是蛇蛋,如此便自然而然的明白如此命名的原因。
pip用来安装和管理python包的命令,可以代替easy_install。
用法:
1、安装python包
- $ pip install simplejson
- [... progress report ...]
- Successfully installed simplejson
2、升级包
- $ pip install --upgrade simplejson
- [... progress report ...]
- Successfully installed simplejson
3、删除包
- $ pip uninstall simplejson
- Uninstalling simplejson:
- /home/me/env/lib/python2.7/site-packages/simplejson
- /home/me/env/lib/python2.7/site-packages/simplejson-2.2.1-py2.7.egg-info
- Proceed (y/n)? y
- Successfully uninstalled simplejson
4、从指定文件中安装指定的包、模块
- pip install -r requirements.txt
- requirements.txt中的格式是:
- django-coverage==1.2.2
- django-permissions==1.0.3
- django-workflows==1.0.2
- django==1.3.1
- MySQL-python==1.2.3
- python-krbV==1.0.90
- South==0.7.5
关于pip的更多详细信息,请见http://www.pip-installer.org/en/latest/
Ubuntu下安装pip的方法
安装pip的方法:
Install pip and virtualenv for Ubuntu 10.10 Maverick and newer
$ sudo apt-get install python-pip python-dev build-essential
$ sudo pip install --upgrade pip
$ sudo pip install --upgrade virtualenv
For older versions of Ubuntu
Install Easy Install
$ sudo apt-get install python-setuptools python-dev build-essential
Install pip
$ sudo easy_install pip
Install virtualenv
$ sudo pip install --upgrade virtualenv
安装mysql拓展包可以:sudo pip install mysql-python
安装其他的包只要pip + 包的名字 就行了 很方便。而且安装完的mysqlib用起来没一点问题,
在windows下还要修改下源文件。写程序还是在linux下好啊。
安装mysql
apt-get install mysql-server
相关推荐
Input here (Only accepts integers)>>> askString("What's your name?")What's your name?# Input here>>> askChar('Do you want to proceed?', ['y','n'])Do you want to proceed? (y/n)# Input
最新动态What's On 是格拉斯哥大学的 Web 应用程序开发 2 项目。 什么是跨平台日历,它使用户能够添加多个日历,每个特定于特定事件,例如大学时间表或锻炼时间表到一个可管理的日历界面。运行应用程序的说明要将此...
生动的色彩 :rainbow: :package: VividHues是Python控制台中用于彩色字符串的轻量级Python软件包!... COLOUR + "What's your name? \n \t --> " + Clr . RESET ) # For input() use plusses, not commas!
It's the repository of things that I learned... Python branch What I've learned in python [Lil-tool] ascii.py 一个可以把图片转换成简单字符画的小工具,转自实验楼 -使用方法 安装pillow sudo pip3 install ...
What’s New in Python What’s New In Python 3.6 Summary – Release highlights New Features PEP 498: Formatted string literals PEP 526: Syntax for variable annotations PEP 515: Underscores in ...
AWS CloudFormation资源提供程序Python插件 CloudFormation CLI(cfn)允许您编写自己的资源提供者,供CloudFormation使用。 此插件库有助于提供Python运行时绑定,以通过...What's the name of your resource typ
$ sumy lex-rank --length=10 --url=http://en.wikipedia.org/wiki/Automatic_summarization # what's summarization?$ sumy luhn --language=czech --url=http://www.zdrojak.cz/clanky/automaticke-zabe
狮身人面像测验 Sphinx扩展名。 直接在您的内容中编写测验或包括外部.md文件。 在尝试quizdown。 安装 首先,使用以下命令安装库: ... > It's the largest city in Germany. - [x] Berlin - [ ] Co
What's up ?") # Messege that you want to send [line:53] usrnames = ['instagram', 'twitter'] # username whom you will send the message [line:11] 确保已安装Chrome,并且$PATH上提供了与Chrome版本匹配...
What's this ------------ `MessagePack <http://msgpack.org/>`_ is a fast, compact binary serialization format, suitable for similar data to JSON. This package provides CPython bindings for reading and...
$ pip install "django-cymysql>=x.y,<x xss=removed> create database some_what_database default character set utf8; 设定值 DATABASES = { 'default': { 'ENGINE': 'mysql_cymysql', 'NAME': 's
您可以通过pip安装两者: pip install -r requirements.txt用法Usage: dropbox_hook.py [OPTIONS] COMMAND [ARGS]... This tool makes it easier to test Dropbox webhooks, particularly on localhost. It ...
This is a very simple example and it should converge relatively quickly, so it's a great way to get started! It also visualizes the game during training, so you can watch it learn. How cool is that? ...
LINGO是用来求解线性和非线性优化问题的简易工具。LINGO内置了一种建立最优化模型的语言,可以简便地表达大规模问题,利用LINGO高效的求解器可快速求解并分析结果。 §1 LINGO快速入门 当你在windows下开始运行...