How to integrate Django and Cygwin?

后端 未结 9 1266
野趣味
野趣味 2021-02-14 11:35

I have a Windows box with cygwin, python and django installed.

Now I want to run django-admin, but when I do I get the error:

$ django-admin.py
c:\\Pytho         


        
9条回答
  •  北海茫月
    2021-02-14 12:13

    As for the step on how to start your django in cygwin

    first open your windows command prompt then register the python environment by doing this:

    Path %path%;C:\Python27;C:\Python27\Scripts
    

    then now go to the installation folder of your cygwin

    cd C:\cygwin
    

    then run the cygwin.bat like this:

    C:\cygwin>cygwin.bat    
    

    then cygwin will open, and type python to see if it now working

    $ python
    

    Voila we are done!

提交回复
热议问题