V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2016-09-07 21:27:22 +08:00 · 2179 次点击
    这是一个创建于 2789 天前的主题,其中的信息可能已经有所发展或是发生改变。

    今天捣鼓了一下 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 条回复    2016-09-08 15:32:59 +08:00
    ClutchBear
        1
    ClutchBear  
       2016-09-08 09:33:31 +08:00
    装 pyenv
    julyclyde
        2
    julyclyde  
       2016-09-08 14:54:41 +08:00
    @ClutchBear 你这叫拿着锤子看啥都是钉子
    julyclyde
        3
    julyclyde  
       2016-09-08 14:59:09 +08:00
    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  
       2016-09-08 15:27:12 +08:00
    我也时 home brew 安装的,换清华的源快很多,不敢乱搞系统自带的.
    singlepig
        5
    singlepig  
       2016-09-08 15:32:59 +08:00
    ll /usr/local/bin/python3
    看看这个是链接到哪个文件
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2538 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:53 · PVG 23:53 · LAX 08:53 · JFK 11:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.