The problem is that the pythonXX.dll is missing when you install for 'only this user'. Copying the correct dll into the virtual env scripts folder fixes this issue.
Anywhere before the test "[py_executable, '-c', 'import sys; print sys.prefix']" place the lines:
# Fix python on windows if installed for 'only this user'
if sys.platform == 'win32':
# Windows 'may' be installed for 'Only this user' so lets fix it and try again.
python_dll = os.path.join(os.path.dirname(sys.executable), 'python%s%s.dll' % (sys.version_info[0], sys.version_info[1]))
if os.path.isfile(python_dll): shutil.copyfile(python_dll, os.path.join(os.path.dirname(py_executable), 'python%s%s.dll' % (sys.version_info[0], sys.version_info[1])))
The problem is that the pythonXX.dll is missing when you install for 'only this user'. Copying the correct dll into the virtual env scripts folder fixes this issue.
Anywhere before the test "[py_executable, '-c', 'import sys; print sys.prefix']" place the lines:
# Fix python on windows if installed for 'only this user' join(os. path.dirname( sys.executable) ,
'python% s%s.dll' % (sys.version_ info[0] , sys.version_ info[1] )) isfile( python_ dll):
shutil. copyfile( python_ dll, os.path. join(os. path.dirname( py_executable) ,
'python% s%s.dll' % (sys.version_ info[0] , sys.version_ info[1] )))
if sys.platform == 'win32':
# Windows 'may' be installed for 'Only this user' so lets fix it and try again.
python_dll = os.path.
if os.path.