import sysconfig
print(sysconfig._getuserbase())
####
./libtool: line 5999: cd: C:_32Python27/lib: No such file or directory
####
sisyphus@Owner-PC311012 MINGW64 ~
$ ls /c/_32/Python27
DLLs
include
libs
NEWS.txt
pythonw.exe
tcl
w9xpopen.exe
Doc
Lib
LICENSE.txt
python.exe
README.txt
Tools
sisyphus@Owner-PC311012 MINGW64 ~
$ ls C:/_32/Python27
DLLs
include
libs
NEWS.txt
pythonw.exe
tcl
w9xpopen.exe
Doc
Lib
LICENSE.txt
python.exe
README.txt
Tools
sisyphus@Owner-PC311012 MINGW64 ~
$ ls C:\_32\Python27
ls: cannot access C:_32Python27: No such file or directory