推荐学习书目
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 ·
    tanteng · May 7, 2015 · 4597 views
    This topic created in 4040 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
        1
    expireddessert  
       May 7, 2015   ❤️ 1
    $ python3 pleaseGoogle.py
    caomaocao
        2
    caomaocao  
       May 7, 2015
    python3 ..py
    tanteng
        3
    tanteng  
    OP
       May 7, 2015
    @pangtianyu 谢谢谢谢!正解!
    messense
        4
    messense  
       May 7, 2015
    lz 居然装了 3.7 哪里穿越来的
    hebwjb
        5
    hebwjb  
       May 7, 2015
    3.7的版本好高大上
    jiang42
        6
    jiang42  
       May 7, 2015
    时光机!
    VirgilMing
        7
    VirgilMing  
       May 7, 2015
    $ python3 LMGTFY.py

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

    https://www.v2ex.com/t/518314
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   847 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 65ms · UTC 21:09 · PVG 05:09 · LAX 14:09 · JFK 17:09
    ♥ Do have faith in what you're doing.