Installed Virtualenv and activating virtualenv doesn't work

前端 未结 5 535
时光说笑
时光说笑 2021-02-04 06:59

I cloned my Django Project from Github Account and activated the virtualenv using famous command source nameofenv/bin/activate And when I run python manage.py

5条回答
  •  醉话见心
    2021-02-04 07:29

    If you have several python on your machine, for example,python2.7, python3.4, python3.6, it is import to figure out which version the python really reference to, and more over, which version does pip reference to.

    The same problem got in my way after I installed the let's encrypt when I run the following command.

    (python3 manage.py runserver 0:8000 &)
    

    I inspected the python version and found that python3, python3.4, python3.6, python3.4m were all available.

    I just change python3 to python3.6 and solved the problem.

    (python3.6 manage.py runserver 0:8000 &)
    

    So, this is probably a version mismatching problem if it is OK for a long time and crashes down suddenly.

提交回复
热议问题