我刚刚在Win 7计算机上安装了python 3.6.0b4(默认,2016年11月22日)amd64。当我尝试安装pywin32-220.win-amd64-py3.6时,我收到错误消息~/work ᐅ mkdir ttt
~/work ᐅ docker run -itd -v $(pwd)/ttt:/ttt/ssl/samba.crt:ro ubuntu /bin/bash 2dc4fe36b2d4bf73a019160437a9f64501b05bb54ed7dc74d5b5f6b487171f27
~/work ᐅ rm -rf ttt
~/work ᐅ touch ttt
~/work ᐅ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2dc4fe36b2d4 ubuntu "/bin/bash" 25 seconds ago Up 24 seconds mad_boyd
~/work ᐅ docker restart mad_boyd
Error response from daemon: Cannot restart container mad_boyd: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:359: container init caused \\\"rootfs_linux.go:53: mounting \\\\\\\"/home/roman/work/stackoverflow/volume-stuff/ttt\\\\\\\" to rootfs \\\\\\\"/var/lib/docker/aufs/mnt/ddb94bac7c9f1fa43165b514e84f2584887040b04e42748cfa06011113514d30\\\\\\\" at \\\\\\\"/var/lib/docker/aufs/mnt/ddb94bac7c9f1fa43165b514e84f2584887040b04e42748cfa06011113514d30/ttt/ssl/samba.crt\\\\\\\" caused \\\\\\\"not a directory\\\\\\\"\\\"\"\n"
~/work ᐅ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
~/work ᐅ rm ttt
~/work ᐅ docker start mad_boyd
mad_boyd
~/work ᐅ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2dc4fe36b2d4 ubuntu "/bin/bash" 56 seconds ago Up 1 seconds mad_boyd
~/work ᐅ ls
ttt
。
Python版本3.6-32听起来像32位版本,这似乎不合适。也许我误解了。
我已经看到有关安装pywin 3.5-32的类似问题的帖子,但没有关于3.6b4或64位版本。
我该如何解决这个问题?
答案 0 :(得分:0)
请参阅https://sourceforge.net/p/pywin32/bugs/731/
我将LOCAL_MACHINE更改为CURRENT_USER,但我不确定这是否重要。如果安装rc1,请更改b2。确保路径正确。
答案 1 :(得分:0)
只需重命名
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6-32
要:
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6
这也适用于Python 3.6.1。
取自上面的链接。