pip install Django on python3.6

后端 未结 5 2395
青春惊慌失措
青春惊慌失措 2021-02-19 19:35

If I run pip install Django I get

Requirement already satisfied: Django in /usr/local/lib/python2.7/dist-packages

I\'

5条回答
  •  情深已故
    2021-02-19 20:06

    You have to install pip3 :

    sudo apt-get install python3-pip
    

    Then, you have to work with venv

    pip3 -p python3.6 virtualenv name
    

    And you have to write :

    pip3 install Django
    
    #or specific version
    pip3 install Django==1.10.5
    

提交回复
热议问题