推荐学习书目
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
jj123456
V2EX  ›  Python

python3 的错误是什么情况

  •  
  •   jj123456 · Mar 5, 2018 · 4320 views
    This topic created in 2992 days ago, the information mentioned may be changed or developed.

    求问下面的 python 错误是因为什么原因,python3 使用 brew 安装的

    /usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python: can't open file 'run': [Errno 2] No such file or directory
    
    10 replies    2018-03-05 21:08:49 +08:00
    snowolfy
        1
    snowolfy  
       Mar 5, 2018
    说是没有找到 `run` 这个文件?
    likuku
        2
    likuku  
       Mar 5, 2018
    用 pyenv,再重复多少次也是不够的。

    pyenv 入门介绍 - V2EX : https://www.v2ex.com/t/420216
    julyclyde
        3
    julyclyde  
       Mar 5, 2018
    @likuku 你这答案并没有针对 lz 的提问啊
    xsseroot
        4
    xsseroot  
       Mar 5, 2018
    楼主你不贴下上下文说明情况?怎么给你看啊
    jj123456
        5
    jj123456  
    OP
       Mar 5, 2018
    使用的命令是
    ```
    python3 run server.py
    ```
    就出现了这个问题
    @xsseroot
    xwyam
        6
    xwyam  
       Mar 5, 2018 via Android   ❤️ 2
    @jj123456 python3 server.py 应该就可以了
    xsseroot
        7
    xsseroot  
       Mar 5, 2018
    @xwyam +1
    beforeuwait
        8
    beforeuwait  
       Mar 5, 2018
    6 楼 +1
    omph
        9
    omph  
       Mar 5, 2018
    python3 server.py run
    IanPeverell
        10
    IanPeverell  
       Mar 5, 2018
    python3 命令的格式是 python3 文件名.py arg1 arg2 …… 所以至少也是#9 的样子
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3238 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 13:33 · PVG 21:33 · LAX 06:33 · JFK 09:33
    ♥ Do have faith in what you're doing.