fetch/gclient sync 在 Windows Server 2012(64 位)主机上的终端窗口中工作正常。TeamCity 构建代理是 32 位应用程序,我无法更改它。当我尝试将 fetch/gclient sync 作为构建步骤运行时,它失败了。这里的错误信息:
New python executable in C:\Windows\system32\config\systemprofile\.vpython-root\ac0e59\Scripts\python.exe
ERROR: The executable C:\Windows\system32\config\systemprofile\.vpython-root\ac0e59\Scripts\python.exe is not functioning
ERROR: It thinks sys.prefix is u'c:\\windows\\syswow64\\config\\systemprofile\\.vpython-root\\ac0e59' (should be u'c:\\windows\\system32\\config\\systemprofile\\.vpython-root\\ac0e59')
ERROR: virtualenv is not compatible with this system or executable
Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versions of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem.
python输出下一个的命令:
C:\>where python
C:\utils\depot_tools\python.bat
C:\DevTools\Python27\python.exe
所以我认为这里的主要问题是:
ERROR: It thinks sys.prefix is u'c:\\windows\\syswow64\\config\\systemprofile\\.vpython-root\\ac0e59' (should be u'c:\\windows\\system32\\config\\systemprofile\\.vpython-root\\ac0e59')
我没有解决方案。
任何想法如何解决它?