scons
在Windows 10上何时安装Python 3.6.1和Python 2.7.13?键入时
python
在我的命令窗口中,我得到以下输出:
Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
因为我个人使用Python 3.6.x,所以这对我来说很好,我不想改变这一点。
键入时
py -2
在我的命令窗口中,我得到以下输出:
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
烤饼
不适用于Python 3.x。它需要使用Python 2.7.x执行。我如何“告诉”SCON使用Python 2.7.x?
PS C:\dev\projectX> scons
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007050 (most recent call first):