Specify Python Version for Virtualenv in Requirements.txt

后端 未结 4 579
离开以前
离开以前 2021-01-04 01:06

I\'m using virtualenv to develop a django application with a team. The server we\'re deploying on is running python 2.6, but the default for our machines is 2.7.3. Is there

4条回答
  •  一向
    一向 (楼主)
    2021-01-04 01:14

    You can also specify the default Python by this command:

    sudo update-alternatives  --set python /usr/bin/python3.7
    

提交回复
热议问题