Where is Pip3 Installing Modules?

后端 未结 2 890
无人共我
无人共我 2021-02-05 17:29
  • Ubuntu 15.10
  • Python 3.4.3+
  • Django 1.8.7

When I try to import django in the python3 interpreter, it says ImportError: No

2条回答
  •  广开言路
    2021-02-05 17:52

    I think you have installed django outside virtual environment. download virtual environment by

    pip install virtualenv
    virtualenv your_env
    

    Activate virtual environment.

    source your_env/bin/activate
    

    Then, Install django in your virtual environment.

提交回复
热议问题