virtualenv -- python虚拟沙盒
2016-01-11 18:04
465 查看
1.安装:
[root@test40 local]# easy_install virtualenv
2.配置
[root@test40 auto_import_card_info]# virtualenv auto_import_card_info_env
New python executable in auto_import_card_info_env/bin/python
Installing setuptools, pip, wheel...done.
3.启动
创建成功后,会在当前目录下生成对应的目录文件,进入目录,启动
[root@test40 auto_import_card_info_env]# source ./bin/activate
启动成功后,提示符后面会多出auto_import_card_info_env的字样,如下,
(auto_import_card_info_env)[root@test40 auto_import_card_info_env]#
此时就可以在此环境中安装包了,
4.退出
(auto_import_card_info_env)[root@test40 auto_import_card_info_env]# deactivate
[root@test40 local]# easy_install virtualenv
2.配置
[root@test40 auto_import_card_info]# virtualenv auto_import_card_info_env
New python executable in auto_import_card_info_env/bin/python
Installing setuptools, pip, wheel...done.
3.启动
创建成功后,会在当前目录下生成对应的目录文件,进入目录,启动
[root@test40 auto_import_card_info_env]# source ./bin/activate
启动成功后,提示符后面会多出auto_import_card_info_env的字样,如下,
(auto_import_card_info_env)[root@test40 auto_import_card_info_env]#
此时就可以在此环境中安装包了,
4.退出
(auto_import_card_info_env)[root@test40 auto_import_card_info_env]# deactivate
相关文章推荐
- python 实例8 日常记账本小程序
- 安装Django python2.7 + Django1.5.12
- 用python开发股票自动技术分析的软件(三)
- 分类模型的精确率(precision)与召回率(recall)(Python)
- python解析xml文件注意
- Unicode Tips
- python数字图像处理(2):图像的读取、显示与保存
- 自学Python一 迷茫中的开端!
- [151225] Python3 实现最大堆、堆排序,解决TopK问题
- Spark环境下的Kmeans-Python实现
- python豆瓣电影爬虫
- Python篇----命令行调用、输出log日志并打包的脚本
- Python进阶06-10
- [160111] Python学习记录
- Python使用wxPython报错解决方法
- Python转码问题
- [转]python pickle包,cPickle包 存储
- [转]python yield
- Python函数对象
- [转]Python核心模块——urllib模块