Python3.5.2 64 位版,升级了 win10 周年更新后启动不了了,怪事。。
orz> python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Failed calling sys.__interactivehook__
Traceback (most recent call last):
File "C:\Users\lao\AppData\Local\Programs\Python\Python35\lib\site.py", line 388, in register_readline
import readline
File "C:\Users\lao\AppData\Local\Programs\Python\Python35\lib\site-packages\readline.py", line 6, in <module>
from pyreadline.rlmain import Readline
File "C:\Users\lao\AppData\Local\Programs\Python\Python35\lib\site-packages\pyreadline\__init__.py", line 12, in <module>
from . import logger, clipboard, lineeditor, modes, console
File "C:\Users\lao\AppData\Local\Programs\Python\Python35\lib\site-packages\pyreadline\logger.py", line 10, in <module>
import socket, logging, logging.handlers
File "C:\Users\lao\AppData\Local\Programs\Python\Python35\lib\logging\__init__.py", line 170, in <module>
_srcfile = os.path.normcase(addLevelName.__code__.co_filename)
AttributeError: module 'ntpath' has no attribute 'normcase'
>>> exit()
1
lll9p OP 看 trace 是 os.path.normcase 出了问题。
|
2
strwei 2016-08-05 13:35:01 +08:00 via iPhone
我发现 win+linux 双系统是多么美好
|
3
zhuangzhuang1988 2016-08-05 13:37:30 +08:00
这个是对 windows 的 python,
在 linux shell 上, 看能不能安装 linux 版本的 python |
4
lll9p OP @zhuangzhuang1988 没启用 ubuntu 子系统啊,我另一个机器上 arch 上跑的 python 倒是好好的。
|
5
wuling 2016-08-05 14:43:02 +08:00
windows 没出问题就好。我升级后系统挂了,重装了两次
|
7
EXE 2016-08-05 21:17:40 +08:00
这个版本确实问题好多
|
8
F2Sky 2016-09-21 20:38:07 +08:00 via iPhone
|