python多版本环境控制及虚拟环境
来源:互联网 发布:网贷大数据交易平台 编辑:程序博客网 时间:2024/06/05 08:00
python 开发的时候我们进程会遇到应为版本问题带来的困扰,以及多版本包带来的软件冲突的问题:
下面我们来使用pyenv 和Virtualenv来为各个不同项目搭建不同环境
一、pyenv安装
1、选择安装到$HOME/.pyenv目录(相对目录的问题这里就不再解释)
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
2、配置环境变量
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
3、重启你得当前shell使其更改生效
exec $SHELL source ~/.bash_profile
4、pyenv命令
[root@yl-testing-env ~]# pyenvpyenv 1.0.10Usage: pyenv <command> [<args>]Some useful pyenv commands are:commands List all available pyenv commandslocal Set or show the local application-specific Python versionglobal Set or show the global Python versionshell Set or show the shell-specific Python versioninstall Install a Python version using python-builduninstall Uninstall a specific Python versionrehash Rehash pyenv shims (run this after installing executables)version Show the current Python version and its originversions List all Python versions available to pyenvwhich Display the full path to an executablewhence List all Python versions that contain the given executableSee `pyenv help <command>' for information on a specific command.For full documentation, see: https://github.com/pyenv/pyenv#readme
0 0
- python多版本环境控制及虚拟环境
- 5.pyenv的使用---- python多版本及虚拟环境
- 创建虚拟运行环境及多版本python切换
- python 多版本、虚拟环境整理
- mac 安装python虚拟环境,多版本共存
- pyenv管理多版本python和虚拟环境常用命令
- 改变虚拟环境中的Python版本
- Anaconda多环境多版本python配置及环境切换
- Mac OS 上用pyenv和pyenv-virtualenv管理多个Python多版本及虚拟环境
- 创建 python 虚拟环境及简单使用
- Python路径及配置虚拟环境笔记
- python虚拟环境virtualenv创建及配置
- python虚拟环境-virtualenv
- python虚拟环境-virtualenv
- python 虚拟环境
- Python 虚拟环境:Virtualenv
- Python 虚拟环境:Virtualenv
- PYTHON 虚拟环境
- cassandra入门
- java多线程
- fresco加载圆形图片 eventbus简单使用 Glide最基本使用
- 背包问题(背包可划分)贪心算法
- Charles4.1最新版破解
- python多版本环境控制及虚拟环境
- CH340 MAC驱动使用教程
- HTML5 离线缓存manifest浅析
- Material Design之Toolbar的简单使用
- 通过摄像头捕获图像用tensorflow做手写数字识别
- AndroidStudio 用Gradle把Moudle打成jar包
- 【综合】WordPress代码的缩进与高亮处理
- 博弈论
- android学习杂记.10