python manage.py makemigrations报一下错误:

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

问题原因,由于打开的目录文件不是我们的工程目录,例如:

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

解决方式1:重新打开该项目,使得根目录为工程目录

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

解决方式二:终端使用cd 进入工程目录:

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
  • 2022-02-14
  • 2021-09-21
猜你喜欢
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-11-07
  • 2021-06-14
  • 2021-09-13
相关资源
相似解决方案