V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
snipes
V2EX  ›  Python

MacOS 终端输入 python3 无法打开,请求帮助。

  •  
  •   snipes · Sep 7, 2016 · 2615 views
    This topic created in 3530 days ago, the information mentioned may be changed or developed.

    今天捣鼓了一下 virtualenv ,可能用力过猛,现在终端输入 python3 ,直接提示找不到文件了了。

    ➜  ~ python3
    
    python3: posix_spawn: /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.52.7: No such file or directory
    
    ➜  ~ which python3
    
    /usr/local/bin/python3
    

    有知道的朋友给支个招吗?

    5 replies    2016-09-08 15:32:59 +08:00
    ClutchBear
        1
    ClutchBear  
       Sep 8, 2016
    装 pyenv
    julyclyde
        2
    julyclyde  
       Sep 8, 2016
    @ClutchBear 你这叫拿着锤子看啥都是钉子
    julyclyde
        3
    julyclyde  
       Sep 8, 2016
    lz 的 /usr/local/bin/python3 是怎么装的?

    我看了看我 brew 的这一份, which python3 也是 /usr/local/bin/python3 ,不过是符号链接到../Cellar/python3/3.5.2_1/bin/python3 去的,和你的路径不同
    我这里系统没自带 python3

    但你这个 /Library/Frameworks/Python.framework/Versions/路径像系统自带的
    wikinee
        4
    wikinee  
       Sep 8, 2016
    我也时 home brew 安装的,换清华的源快很多,不敢乱搞系统自带的.
    singlepig
        5
    singlepig  
       Sep 8, 2016
    ll /usr/local/bin/python3
    看看这个是链接到哪个文件
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   969 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 687ms · UTC 22:20 · PVG 06:20 · LAX 15:20 · JFK 18:20
    ♥ Do have faith in what you're doing.