简体   繁体   English

在 Windows 中运行多个版本的 Python 和 tox

[英]Run multiple versions of Python with tox in Windows

Could anyone point me to the best way to let Tox find multiple Python interpreters on a Windows system?谁能指出让 Tox 在 Windows 系统上找到多个 Python 解释器的最佳方法? I am not allowed to modify the tox.ini for my project.我不允许为我的项目修改 tox.ini。 The tox.ini file contains: tox.ini 文件包含:

envlist = py27,py37

I would like tox to be able to find the Python2 and Python3 interpreters.我希望 tox 能够找到 Python2 和 Python3 解释器。 In Linux, I do this by setting multiple local versions of Python with pyenv (pyenv local 3.7.0, 2.7.15) but the Windows version does not appear to support multiple arguments. In Linux, I do this by setting multiple local versions of Python with pyenv (pyenv local 3.7.0, 2.7.15) but the Windows version does not appear to support multiple arguments. Does anyone have any ideas on the easiest way to do this for Windows, preferably without messing with my PATH?有没有人对 Windows 最简单的方法有任何想法,最好不要弄乱我的路径?

There is also pyenv for Windows Windows 也有pyenv

https://github.com/pyenv-win/pyenv-win https://github.com/pyenv-win/pyenv-win

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM