mac命令行切换python版本,mac进入命令行模式,brew安装anac
mac命令行切换python版本,mac进入命令行模式,brew安装anac
brew安装anaconda3
brew cask install anaconda3
安装之后打开路径查看:/usr/local/anaconda3/bin
anaconda3环境变量设置
vim ~/.zshrcexport PATH=/usr/local/anaconda3/bin:$PATHsource ~/.zshrc
验证
conda --version# 看到版本好就成功了
安装双版本
conda create --name python2 python=2.7conda create --name python3 python=3.7
查看目录 /usr/local/anaconda3/envs/
python环境变量设置
export PATH="/usr/local/anaconda3/envs/python3:$PATH"# 重新加载一下系统环境变量. ~/.zshrc
? ~ python2WARNING: Python 2.7 is not recommended.This version is included in macOS for compatibility with legacy software.Future versions of macOS will not include Python 2.7.Instead, it is recommended that you transition to using ‘python3‘ from within Terminal.Python 2.7.16 (default, Dec 13 2019, 18:00:32)[GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.32.4) (-macos10.15-objc-s on darwinType "help", "copyright", "credits" or "license" for more information.>>>? ~ python3Python 3.7.6 (default, Jan 8 2020, 13:42:34)[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwinType "help", "copyright", "credits" or "license" for more information.>>>
参考
https://www.cnblogs.com/zhoulin1234/p/9893055.html
mac命令行切换python版本
相关内容
- python_配置文件_yaml,python读conf配置文件,一.配置文件:
- 用VS2019写第一个Python程序-Hello, Python!,,第一步: 打
- Python学习笔记之操作yalm,,yalm模块安装#
- python 竖排文本,python文本分析和提取,新建目录train,
- 基于python的学生管理系统(含数据库版本),python做一个
- 7-42 jmu-python-找字符 (15 分),python统计字符出现次数,输
- python 实现wav的波形显示(时域和频域),时域和频域的
- 【Mac + Python3.6 + facebook-wda】之IOS自动化(二):安装
- Google推出了Python最牛逼的编辑器,,环境配置对于大多数
- python中自定义函数的保留字是,python怎么赋值,Python使用
评论关闭