zoukankan      html  css  js  c++  java
  • python(5)python安装for Mac

    1.直接下载dmg文件进行安装

    2.运行项目时遇到了这个问题“no python interpreter configured for the project的提示”

    在新建python项目的时候,出现no python interpreter configured for the project的提示,

    中文意思是没有解析器,这可能是安装python之后,

    没有添加系统环境变量的原因,导致PyCharm找不到解析器

     

    解决方案

    这句话的意思是没有为这个项目配置Python解释器 
    既然错误信息是没有解释器,那么我们加上解释器不OK了 
    第一步,点击上图右侧的configure Python interpreter,弹出如下界面

    mac自带python2.7路径

    mac安装python3.8路径选择:/usr/local/bin/python3.8

     打开终端输入python显示自带的python安装版本

    输入python3显示安装的版本,输入exit()进行退出python端。

     参考:
    1.mac chromedriver的安装目录:/usr/local/bin

    2.mac htmltestrunner的存放目录:命令行下 import sys sys.path
    /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7

    3.查看mac site-packages的路径:命令行下 import sys sys.path
    /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
  • 相关阅读:
    单词小课堂
    js数组
    js规范
    css
    seajs
    IDEA快捷键
    移动端设备禁止页面滑动
    sass中的!default的作用
    【数据分析 R语言实战】学习笔记 第八章 方差分析与R实现
    excel合并单元格
  • 原文地址:https://www.cnblogs.com/yiyaxuan/p/12331868.html
Copyright © 2011-2022 走看看