简体   繁体   中英

Running Scons with two Python installations on Windows

I have installed two different python versions (3.1 and 2,7) And this is now causing a headache. The default installation is the 3.1 which have the PYTHONHOME and PYTHONPATH set. Problem is that when I try to run scons from the 2.7 installation (via Python27/Scripts/scons.bat) I get various import errors that reference to the Python31/lib/ folder.

Are there any good solutions for this, except changing PYTHONHOME and PYTHONPATH for the whole system. Shouldn't scons be able to work with two versions of python installed?

Not sure if this is a SuperUser or a SO question, but my guess that most people experienced with Python and Scons hangs here, and not in SU.

尝试将scons.bat脚本中的PYTHONHOMEPYTHONPATH分别设置为每个Python安装的正确值。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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