我使用python27但想要将脚本移植到python3 . 为了在同一台机器上测试它,我安装了Python 3.5.1(64位) . 在设置期间我 didn't add it to PATH (因为我希望Python27是appengine等程序的默认设置) . 仍然,检查了'for all users'选项 . 我还将安装目录更改为'C:\Python35'(默认为C:\ Python35 \ Program Files) . 安装后我通过键入(在cmd提示符下)使用Windows python启动器测试它:

py -3

它工作得很好 . 然后尝试创建一个python3 virtualenv(我正在使用virtualenvwrapper-win):

mkvirtualenv --python=C:\Python35\python.exe py35env

但它失败了,我得到一个对话框说:

**python.exe - System Error**

The program can't start because VCRUNTIME140.dll is missing from your computer.
Try reinstalling program to fix this problem.

和命令提示符日志:

Running virtualenv with interpreter C:\Python35\python.exe
Using base prefix 'C:\\Python35'
New python executable in C:\Users\Abhimanyu\Envs\py35env\Scripts\python.exe
ERROR: The executable C:\Users\Abhimanyu\Envs\py35env\Scripts\python.exe is not functioning
ERROR: It thinks sys.prefix is 'c:\\users\\abhimanyu\\envs' (should be 'c:\\users\\abhimanyu\\envs\\py35env')
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 instal
led. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem.

正常的virtualenv cmd也会失败并出现相同的错误:

virtualenv -p C:\Python35\python.exe py35env

virtualenv安装在Python2.7.11 - 64位上(Python3.5安装在Python2.7之后) . python27上的软件包版本是:

pip (8.0.2)
setuptools (18.2)
virtualenv (14.0.6)
virtualenvwrapper-win (1.2.1)

我的PATH变量是:

**System**
C:\Python27\;C:\Python27\Scripts;C:\Program Files\Broadcom\Broadcom 802.11;;;c:\program files\graphicsmagick-1.3.23-q16;C:\Program Files\ImageMagick-6.9.3-Q16;;;;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\nodejs\;C:\Program Files\Common Files\Autodesk Shared\

**User**
C:\Program Files (x86)\Google\google_appengine\;C:\Users\Abhimanyu\AppData\Roaming\npm

virtualenvwrapper的默认文件夹是:

C:\Users\Abhimanyu\Envs

我在Windows7 64bit系统上 .

有人可以解释一下可能有什么问题或哪些dll,如cmd提示中所记录的那样,应该复制到哪个目录?