博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Create your first isolated Python environment
阅读量:6934 次
发布时间:2019-06-27

本文共 977 字,大约阅读时间需要 3 分钟。

# Install virtualenv for Python 2.7 and create a sandbox called my27project:pip2.7 install virtualenvvirtualenv-2.7 my27project # Use the built-in pyvenv program in Python 3.3 to create a sandbox called my33project:pyvenv-3.3 my33project # Check the system Python interpreter version:python --version# This will show Python 2.6.6 # Activate the my27project sandbox and check the version of the default Python interpreter in it:source my27project/bin/activatepython --version# This will show Python 2.7.6deactivate # Activate the my33project sandbox and check the version of the default Python interpreter in it:source my33project/bin/activatepython --version# This will show Python 3.3.5deactivate

When you use virtualenv to create a sandbox it will automatically install setuptools and pip for you inside the sandbox. If you use pyvenv then you must do it yourself. You can reuse the ez_setup.py file you downloaded earlier and just run it after you activate your new sandbox.

转载地址:http://sbmjl.baihongyu.com/

你可能感兴趣的文章
Java 命令行运行参数大全
查看>>
关于pfx和cer数字证书
查看>>
聊一聊工程师思维
查看>>
面对runc逃逸漏洞,华为云容器为您保驾护航
查看>>
通用的Oracle数据库当前连接用户下的所有表结构、视图、索引 JSP展示
查看>>
远程视频会诊其实可以低成本实现
查看>>
C++ 常函数
查看>>
线程池与工作队列
查看>>
HSQLDB安装与使用方法
查看>>
【NDK-3】数据类型
查看>>
2.10 属性 (Properties)
查看>>
Flash Remoting
查看>>
我的友情链接
查看>>
Centos6.4最小化安装后初始化配置
查看>>
查看被删除的但仍由进程占用的文件名
查看>>
suse开启vnc远程桌面连接
查看>>
oracle增加表空间的四种方法
查看>>
nagios 监控linux 内存
查看>>
重拾C++之初始化
查看>>
Hadoop作业提交深度剖析
查看>>