Mac安装python-virtualenv与virtualenv使用
来源:互联网 发布:桔城seo伪原创工具 编辑:程序博客网 时间:2024/05/22 13:07
一、安装virtualenv
sudo pip install virtualenv
安装成功后终端输入:
virtualenv
(py3env)resume develop %
You must provide a DEST_DIRUsage: virtualenv [OPTIONS] DEST_DIROptions: --version show program's version number and exit -h, --help show this help message and exit -v, --verbose Increase verbosity. -q, --quiet Decrease verbosity. -p PYTHON_EXE, --python=PYTHON_EXE The Python interpreter to use, e.g., --python=python2.5 will use the python2.5 interpreter to create the new environment. The default is the interpreter that virtualenv was installed with (/usr/bin/python) --clear Clear out the non-root install and start from scratch. --no-site-packages DEPRECATED. Retained only for backward compatibility. Not having access to global site-packages is now the default behavior. --system-site-packages Give the virtual environment access to the global site-packages. --always-copy Always copy files rather than symlinking. --unzip-setuptools Unzip Setuptools when installing it. --relocatable Make an EXISTING virtualenv environment relocatable. This fixes up scripts and makes all .pth files relative. --no-setuptools Do not install setuptools (or pip) in the new virtualenv. --no-pip Do not install pip in the new virtualenv. --extra-search-dir=DIR Directory to look for setuptools/pip distributions in. This option can be used multiple times. --never-download DEPRECATED. Retained only for backward compatibility. This option has no effect. Virtualenv never downloads pip or setuptools. --prompt=PROMPT Provides an alternative prompt prefix for this
安装成功
二、安装python
sudo brew install python3检测python是否安装成功
三、创建虚拟环境
virtualenv -p /usr/local/bin/python3 .virtualenv/py3env
virtualenv -p 安装python路径 虚拟环境存放路径
source .virtualenv/py3env/bin/activate
这时终端前方会有 (py3env) develop % 标志
终端输入:deactivate
此时终端前方py3env会消失
0 0
- Mac安装python-virtualenv与virtualenv使用
- [python]mac安装virtualenv
- Python virtualenv 安装使用
- python virtualenv在window linux平台的安装与使用
- Virtualenv和Virtualenvwrapper安装和使用(Mac)
- Mac 使用virtualenv安装 matplotlib的解决方案
- python-virtualenv安装方法
- 安装 python-virtualenv
- python virtualenv 安装scrapy
- Python-virtualenv安装
- Python virtualenv的使用
- python virtualenv使用
- python Virtualenv使用
- python virtualenv的使用
- python virtualenv使用
- Python-VirtualEnv的使用
- python virtualenv django 使用
- python的virtualenv环境与使用
- Wordpress调试
- hihoCoder - 1014 - Trie树
- quick-lua AssetsManager 热更新代码
- 数模转换模块PCF8591
- 如何正确清空cin缓存
- Mac安装python-virtualenv与virtualenv使用
- 如何在内核中添加新的驱动配置选项
- UI学习概览
- 太陰逆生倒成 太陽倒生逆成
- hdu 1874 畅通工程续 (裸的 Dijkstra)
- 使用ffmpeg.exe进行转码参数说明
- POJ-3278 Catch That Cow
- [LeetCode] Binary Tree Zigzag Level Order Traversal
- OpenSSL “心脏滴血”漏洞