MAC中PyCharm设置python3解释器
作者:LinXunFeng 发布时间:2021-04-18 08:36:17
标签:PyCharm,Python解释器
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
0
投稿
猜你喜欢
- 本文实例讲述了Python3.5面向对象编程。分享给大家供大家参考,具体如下:1、面向过程与面向对象的比较(1)面向过程编程(procedu
- 1、列表页面:this.$router.push({ name: 'userTemplate', params: { rep
- 本教程操作环境:windows7系统、PHP7.1版、DELL G3电脑php数组查询元素位置的方法:方法1:利用array_search(
- 在SQL中系统已为我们提供了很非常丰富的函数:例:聚会函数avg, sum,count,max,min 日期函数:Day,Mon
- 前言pandas 是基于 Numpy 构建的含有更高级数据结构和工具的数据分析包类似于 Numpy 的核心是 ndarray,pandas
- 1、安装AnacondaAnaconda指的是一个开源的Python发行版本,其包含了conda、Python等180多个科学包及其依赖项。
- 基本原理讲解:高斯模糊的算法高斯核函数的编写:构建权重矩阵,采用高斯二维分布函数的形式进行处理。需要注意的是,这里我没有特判当sigma =
- 出现的问题: 在 vue-cli 创建的项目中,创建文件并命名后,会报 “Compone
- 1.腾讯企业邮箱SMTP服务器地址:smtp.exmail.qq.com,ssl端口为:4652.确保腾讯企业邮箱中开启了SMTP服务:3.
- plt是最常用的接口1. 画图的基本步骤1.导入模块import matplotlib as mplimport matplotlib.py
- virtualenv是一个创建隔绝的Python环境的工具。virtualenv创建一个包含所有必要的可执行文件的文件夹,用来使用Pytho
- 1. 读取数据用pandas中的read_csv()函数读取出csv文件中的数据:import pandas as pddf = pd.re
- <script type="text/javascript">/*<![CDAT
- 有如下格式的文本文件/“/请/!/”/“/请/!/”/两名/剑士/各自/倒转/剑尖/,/右手/握/剑柄/,/左手/搭于/右手/手背/,/躬身
- Request.Cookies.Clear()这个方法并不是删除Cookie 删除 Cookie(即从用户的硬盘中物理移除 Cookie)是
- 前置条件确保mysql的版本是5.7+一、新建mysql表增加json字段二、pojo类package com.cxstar.domain;
- 本文实例讲述了PHP实现的AES双向加密解密功能。分享给大家供大家参考,具体如下:<?php/* * Created on 2018-
- 打开一个Project在导航区带出多个Project将会影响PyCharm的运行速度,解决这个问题的方式只打开一个即可。有时候打开一个Pro
- 图片轮播滤镜转换效果,只支持ie浏览器<img width="156" height="60"
- SQL Server 在处理存储过程的时候,为了节省编译时间,是一次编译,多次重用。当第一次运行时代入值产生的执行计划,不适用后续代入的参数