zoukankan      html  css  js  c++  java
  • Python学习记录

    Python学习记录

    开发工具

    PyCharm

    一次获得所有PYTHON工具

    在mac中安装

    一、查看mac自带 python版本

    python
    WARNING: 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 21 2020, 23:00:36) 
    [GCC Apple LLVM 12.0.0 (clang-1200.0.30.4) [+internal-os, ptrauth-isa=sign+stri on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 

    二、退出

    exit()

    三、安装python3

    brew install python3

    四、验证

    python3
    Python 3.8.2 (default, Dec 21 2020, 15:06:04) 
    [Clang 12.0.0 (clang-1200.0.32.29)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 

    五、位置

    which python3
    /usr/bin/python3

    六、问题

    Warning: Building python@3.9 from source:
      The bottle needs the Apple Command Line Tools to be installed.
      You can install them, if desired, with:
        xcode-select --install

     参考资料

    mac上python3.x安装 图文详解

    windows系统下Python环境的搭建

    Python 3 教程

  • 相关阅读:
    筱玛的迷阵探险(折半搜索+01字典树)
    递推
    thin mission 2021 10 8
    4级 -- 阅读
    c++——小知识
    stl
    string
    ting mission 2021.9.20
    ting mission 2021.9.27
    欧拉函数
  • 原文地址:https://www.cnblogs.com/wangwangfei/p/7744688.html
Copyright © 2011-2022 走看看