MAC下Pycharm配置Python环境
使用MAC配置Python环境
1.打开安装好的Pycharm
2.创建一个新项目
3.可以添加自己想存放的位置
4.选择Python安装路径
5.安装路径查询:打开终端输入which python
6.点击create,进入主页
7.
8.不用加后缀名
9.写个简单的运行一下OK啦~
查询Python版本:
升级Python版本
1.打开终端执行命令:open ~/.bash_profile
2.确认.bash_profile文件里是否存在以下内容,没有则添加并保存
Setting PATH for Python 3.7
The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin: python
Python 3.7.2 (v3.7.2:9a3ffc0492, Dec 24 2018, 02:59:38)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.