在Wing101中切换到Python 3.6

时间:2017-02-04 02:01:42

标签: python python-2.7 python-3.x wing-ide

我正在运行Windows 10并在“C:\ Program Files(x86)”中安装了Python 3.6。我在使用Python 2.7时有Wing工作,但是当我尝试切换到Python 3.6(编辑>配置Python)时,我收到以下错误消息:

Trying to import netserver from C:\Program Files (x86)\Wing IDE 101
5.0\bin\3.6\src\debug\tserver Unable to import findmodules Traceback (most recent call last):   File "C:\Program Files (x86)\Wing IDE 101
5.0\bin\wingdb.py", line 415, in FindNetServerModule
    import findmodules ModuleNotFoundError: No module named 'findmodules' Trying to import netserver from C:\Program Files (x86)\Wing IDE 101 5.0\src\debug\tserver Unable to import findmodules Traceback (most recent call last):   File "C:\Program Files (x86)\Wing IDE 101 5.0\bin\wingdb.py", line 415, in FindNetServerModule
    import findmodules ModuleNotFoundError: No module named 'findmodules' Traceback (most recent call last):

  File "C:\Program Files (x86)\Wing IDE 101 5.0\bin\wingdb.py", line 632, in main
    netserver = FindNetServerModule(winghome, user_settings, tmp_log)

  File "C:\Program Files (x86)\Wing IDE 101 5.0\bin\wingdb.py", line 451, in FindNetServerModule
    raise ImportError('Could not import netserver')

ImportError: Could not import netserver

wingdb.py: Error: Failed to start the debug server wingdb.py: Error: You may be running an unsupported version of Python wingdb.py: Python version = 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (Intel)] wingdb.py: WINGHOME='C:\\Program Files (x86)\\Wing IDE 101 5.0' Traceback (most recent call last):   File "C:\Program Files (x86)\Wing IDE 101 5.0\bin\wingdb.py", line 632, in main
    netserver = FindNetServerModule(winghome, user_settings, tmp_log)   File "C:\Program Files (x86)\Wing IDE 101 5.0\bin\wingdb.py", line 451, in FindNetServerModule
    raise ImportError('Could not import netserver') ImportError: Could not import netserver

During handling of the above exception, another exception occurred:

Traceback (most recent call last):   File "C:\Program Files (x86)\Wing IDE 101 5.0\bin\wingdb.py", line 643, in main
    sys.exit(-1) SystemExit: -1

1 个答案:

答案 0 :(得分:1)

由于Wing 5不支持Python 3.6,因此您需要升级到Wing 6。您可以在http://wingware.com/downloads/wingide-101

获取