python can't open file 'manage.py': [Errno 2] No such file or directory

 

 

 问题原因:

我的python是放在C盘的,而我的django项目是放在D盘的,直接执行python manage.py runserver,他找的是C盘的manage.py。

解决方法:

1.指定项目路径

python D:\py\test2\mysite\manage.py runserver

2.cd mysite目录

python can't open file 'manage.py': [Errno 2] No such file or directory

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2021-11-20
  • 2022-12-23
  • 2021-09-21
猜你喜欢
  • 2021-07-24
  • 2021-12-24
  • 2022-12-23
  • 2021-11-07
  • 2021-06-14
  • 2021-09-13
相关资源
相似解决方案