MAC中PyCharm设置python3解释器
作者:LinXunFeng 时间:2021-04-18 08:36:17
MAC上的PyCharm中默认的python解释器是python2的,windows下的没用过不是很清楚,所以特来记录下设置python3解释器的过程。
python3的查找与安装
如果电脑中没有安装python3可以用brewhome来安装,简单记录下
// 查看python版本
python --version
python3 --version
// 搜索python
brew search python
// 安装python3
brew install python3
然后经过一个漫长的过程就安装好了,好,圆规正题
设置PyCharm
打开PyCharm的偏好设置
// 搜索Interpreter
Interpreter
点击更多按钮,选择【Create VirtualEnv】
Name随便写,位置可以跟我一样放到[.virtualenvs]下
/Users/(userName)/.virtualenvs
// python2
which python
// python3
which python3
选择【Base interpreter】python3的执行文件位置
点击OK就好了,接下来设置python3做为默认的解释器吧
来源:https://juejin.im/post/5a3290136fb9a04519699e26
标签:PyCharm,Python解释器
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python循环输出三角形图案的例子
2022-05-16 08:38:37
![](https://img.aspxhome.com/file/2023/5/103265_0s.jpg)
一个asp版的xheditor上传图片服务器端文件
2009-12-21 14:18:00
![](https://img.aspxhome.com/file/UploadPic/20101/11/200982514518-20s.jpg)
8个js表单验证函数
2007-10-28 19:19:00
python连接kafka加载数据的项目实践
2021-04-23 07:14:38
![](https://img.aspxhome.com/file/2023/2/89382_0s.png)
python实现引用其他路径包里面的模块
2023-02-21 21:57:53
![](https://img.aspxhome.com/file/2023/9/109999_0s.jpg)
实现div可编辑的常见方法
2007-11-06 12:02:00
python k-近邻算法实例分享
2022-03-26 14:47:17
python中Flask Web 表单的使用方法介绍
2023-08-26 15:13:24
![](https://img.aspxhome.com/file/2023/8/90748_0s.webp)
仅Firefox中链接A无法实现模拟点击以触发其默认行为
2023-06-27 23:29:02
网页制作前台之javascript
2013-07-23 08:32:59
Python基础详解之邮件处理
2021-03-16 09:27:58
![](https://img.aspxhome.com/file/2023/7/79407_0s.png)
解析php获取字符串的编码格式的方法(函数)
2023-10-02 22:26:49
MySQL 函数过程递归
2008-07-25 19:32:00
MySQL数据库中与 ALTER TABLE 有关的问题
2009-01-14 11:57:00
python实现的分层随机抽样案例
2022-06-07 16:10:42
![](https://img.aspxhome.com/file/2023/8/115878_0s.jpg)
Python光学仿真之对光的干涉理解学习
2021-05-24 04:47:52
![](https://img.aspxhome.com/file/2023/6/110406_0s.png)
python3.7.2 tkinter entry框限定输入数字的操作
2021-02-22 14:40:36
![](https://img.aspxhome.com/file/2023/4/109924_0s.png)
Flask框架实现的前端RSA加密与后端Python解密功能详解
2021-07-26 16:28:13
![](https://img.aspxhome.com/file/2023/7/89277_0s.jpg)
php+mysql开发的最简单在线题库(在线做题系统)完整案例
2023-08-21 20:03:14
![](https://img.aspxhome.com/file/2023/3/553631_0s.png)
教你使用Python的pygame模块实现拼图游戏
2022-06-28 03:20:20