Specify Python Version for Virtualenv in Requirements.txt

后端 未结 4 552
离开以前
离开以前 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:07

    As per your comment, the only issue here should be making sure no 2.7-only code makes it into your code base. For that I recommend using tox, and having it configured to create a 2.6 environment to test on, so that when your coworkers run your test suite, the tests are run in a 2.6 virtual environment.

提交回复
热议问题