How to get more diagnostic output on a “no module named xyz” error?

前端 未结 2 915
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 02:15

I have, in a local directory, a django project that works fine when I run it from a local django server, as in

python manage.py runserver.py 8000
         


        
2条回答
  •  眼角桃花
    2020-12-04 02:46

    You probably need to install the dependencies. A common thing is to store dependencies inside requirements.txt and run "pip install -r requirements.txt" when you clone a project. To push dependencies into requirements.txt you use "pip freeze > requirements.txt". So, if you project uses PIL or six or whatever it will be added to that file and then you can pip install them with a single command. I hope I haven't missed your point.

提交回复
热议问题