推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
tanteng
V2EX  ›  Python

如何在 mac 终端运行 python3?在线等

  •  
  •   tanteng · May 7, 2015 · 4856 views
    This topic created in 4199 days ago, the information mentioned may be changed or developed.

    如题。切换到文件所在的目录了,直接python xx.py的话,用的是系统自带的python 2.7,输入python3命令虽然切换到了3.7,但是怎么运行py文件??

    13 replies  •  2022-02-19 12:42:31 +08:00
    expireddessert
    expireddessert
    May 7, 2015❤️1
    1
    $ python3 pleaseGoogle.py
    caomaocao
    caomaocao
    May 7, 2015
    2
    python3 ..py
    tanteng
    tanteng
    OP
    May 7, 2015
    3
    @pangtianyu 谢谢谢谢!正解!
    messense
    messense
    May 7, 2015
    4
    lz 居然装了 3.7 哪里穿越来的
    hebwjb
    hebwjb
    May 7, 2015
    5
    3.7的版本好高大上
    jiang42
    jiang42
    May 7, 2015
    6
    时光机!
    VirgilMing
    VirgilMing
    May 7, 2015
    7
    $ python3 LMGTFY.py

    Dirty hack: $ alias python="${yourPython3Location}"
    ca1n
    ca1n
    May 7, 2015
    8
    3.7给跪。。。
    vic2012
    vic2012
    May 7, 2015 via iPad
    9
    楼主别走等等我~
    bingwenshi
    bingwenshi
    May 7, 2015
    10
    你可以使用pyenv 给不同的项目设置不同的virtual env ,这样就可以愉快的使用python3了
    CodeDrift
    CodeDrift
    May 7, 2015
    11
    楼主等等我。。。
    a398058068
    a398058068
    May 8, 2015
    12
    去官网下3 然后 python3.4就可以了
    Livid
    Livid
    MOD
    PRO
    Feb 19, 2022
    13
    用 pyenv 安装和管理多个你需要的 Python 版本:

    https://www.v2ex.com/t/518314
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3037 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 11:44 · PVG 19:44 · LAX 03:44 · JFK 06:44
    ♥ Do have faith in what you're doing.