决定配置完整的python ubuntu14.04 python-dev distribute
来源:互联网 发布:淘宝流量和访客的区别 编辑:程序博客网 时间:2024/04/30 04:18
一、python-dev 包的安装
sudo aptitude -y install python-dev
二、distribute包的安装(Distribute制作程序包,而用pip安装程序包)
http://www.nowamagic.net/academy/detail/1330219
# wget https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip --no-check-certificate
# unzip distribute-0.7.3.zip
# cd distribute-0.7.3
# python2.7 setup.py install
三、pip命令的安装(用来从PyPI安装功能包,代替旧版本的easy_install)
# wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
#sudo python get-pip.py
pip --version
使用pip命令安装的包会存放在 /usr/local/lib/python2.7目录下。
四、安装virtualenv
作用是将python的实际运行环境进行虚拟的工具包。
pip install virtualenv
用virtualenv 创建一个供新开发的python应用程序运行的虚拟环境。
(python2.7)zhchang@zhchang-All-Series:~$ export VIRTUALENV_SUE_DISTRIBUTE=true
(python2.7)zhchang@zhchang-All-Series:~$ mkdir ~/work
(python2.7)zhchang@zhchang-All-Series:~$ cd work
(python2.7)zhchang@zhchang-All-Series:~/work$ virtualenv env
虚拟环境激活:
source env/bin/activate
(env)zhchang@zhchang-All-Series:~/work$
退出虚拟环境:
(env)zhchang@zhchang-All-Series:~/work$ deactivate
zhchang@zhchang-All-Series:~/work$
- 决定配置完整的python ubuntu14.04 python-dev distribute
- ubuntu14.04安装python-dev提示版本依赖的解决办法
- ubuntu14.04配置caffe的python接口
- Python篇(一):ubuntu14.04下Python的环境配置
- 【Python】Note1:Ubuntu14.04环境下,配置PythonIDLE的背景
- ubuntu14.04 配置python开发环境 eric4
- Ubuntu14.04 + opencv2.4.11 + python环境配置
- ubuntu14.04下配置python环境
- Ubuntu14.04下,python配置scikit-learn
- Ubuntu14.04用户配置Python与tensorflow
- Python pip distribute
- python--leetcode575. Distribute Candies
- ARToolkit在ubuntu14.04下的完整配置
- Ubuntu14.04的Python问题汇总
- Python的包管理工具easy_install, setuptools, pip,distribute介绍
- Python的包管理工具easy_install, setuptools, pip,distribute介绍
- Python的包管理工具easy_install, setuptools, pip,distribute介绍
- Python 的包管理工具 distribute, setuptools, easy_install 与 pip
- 分布式哈希表(DHT,Distributed Hash Table
- 算法的定义
- 数据库分库分表(sharding)系列(二) 全局主键生成策略
- Java并发编程系列之三:重排序与顺序一致性
- 什么是web框架
- 决定配置完整的python ubuntu14.04 python-dev distribute
- 312 Burst Balloons
- spring初始化
- 计算机经典书籍汇总
- Android中Shape的使用范例
- 怎么让Android 浏览器焦点在文本输入框时不自动放大页面?
- 常用的开发工具
- Big-endian
- [leetcode] 279. Perfect Squares