How to integrate Django and Cygwin?

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

    Add two lines to .bash_profile and .bashrc files (view their difference here). You can find them in C:\cygwin\home\[username]:

    export PATH=$PATH:/cygdrive/c/python2.7
    export PYTHONPATH=$PYTHONPATH:/cygdrive/c/python2.7/Lib/site-packages
    

    Hope this helps

提交回复
热议问题