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
15874103329
V2EX  ›  Python

[新人求助] 为何 pycharm 创建 Django 后无法运行

  •  
  •   15874103329 · 2018-11-11 15:39:16 +08:00 · 3956 次点击
    这是一个创建于 1965 天前的主题,其中的信息可能已经有所发展或是发生改变。
    点击运行后提示:
    "D:\python 学习\PyCharm\PyCharm 2018.2.4\bin\runnerw.exe" D:\python 学习\环境变量\untitled1\Scripts\python.exe D:/python 学习 /untitled1/manage.py runserver 8000
    runnerw.exe: CreateProcess failed with error 2:
    进程已结束,退出代码 2
    5 条回复    2018-11-12 10:25:41 +08:00
    15874103329
        1
    15874103329  
    OP
       2018-11-11 15:44:05 +08:00
    有没有老哥来解答一下,难受
    fumeboy
        2
    fumeboy  
       2018-11-11 18:00:05 +08:00 via Android
    你不用中文文件路径试试
    ltoddy
        3
    ltoddy  
       2018-11-11 22:46:27 +08:00 via Android
    python manage.py runserver

    别整天想着点按钮去运行。
    anonymous256
        4
    anonymous256  
       2018-11-12 05:13:35 +08:00 via Android
    查看你的 idea.log 。

    似乎是文件路径不存在,可能是楼上提到的路径问题。
    www.google.com/amp/s/dotnetvibes.com/2018/01/03/intellij-idea-error-cannot-run-program-no-such-file-or-directory/amp/
    xpresslink
        5
    xpresslink  
       2018-11-12 10:25:41 +08:00
    python 项目路径里面不要用任何中文和下划线以外的字符,不要用大写。全部小写字母。
    楼主先不用用 pycharm 直接在 Dos 环境里手工建项目和 app 在用命令行运行。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2779 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 12:07 · PVG 20:07 · LAX 05:07 · JFK 08:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.