How to solve SyntaxError on autogenerated manage.py?

前端 未结 30 2164
囚心锁ツ
囚心锁ツ 2020-11-28 08:24

I\'m following the Django tutorial https://docs.djangoproject.com/es/1.10/intro/tutorial01/

I\'ve created a \"mysite\" dummy project (my very first one) and try to

30条回答
  •  暖寄归人
    2020-11-28 09:05

    The following could be the possible reasons,

    1. The virtual environment is not enabled
    2. The virtual environment is enabled but the python version is different
    

    To create virtual environment

    $ virtualenv --python=python3 venv
    

    To activate the virtual environment

    $ source venv/bin/activate
    

提交回复
热议问题