How to integrate Django and Cygwin?

后端 未结 9 1272
野趣味
野趣味 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:15

    Sort of sounds like the windows version of Python is trying to run instead of the cygwin one. What happens if you type this:

    $ python django-admin.py
    

    Here I'm assuming

    $ which python
    

    Finds the cygwin version of python (which will be something like /usr/bin/python).

    You may also try (temporarily) uninstalling the windows version of python and use only cygwin.

提交回复
热议问题