python - 在 Wing101 中切换到 Python 3.6

标签 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

最佳答案

您需要升级到 Wing 6,因为 Wing 5 不支持 Python 3.6。您可以通过 http://wingware.com/downloads/wingide-101 获取

关于python - 在 Wing101 中切换到 Python 3.6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42035700/

相关文章:

python - python3.4 的 SciPy 和 ggplot 安装

python - numpy 3d 数组 -- 展平 --> 1d 数组 --> 选择 1d 中的一个元素 --> 如何知道该元素在 3d 中的索引?

python - 如何 reshape 列表数组?

python - 如何使用 python 从文件夹中读取 xml 文件?

python - 使用 Python requests 模块下载并保存 PDF 文件

python - 附加具有不同列名称的数据框 - Pandas

python-3.x - 在不和谐机器人上播放音乐的替代方法

python - 将 new.module() 移植到 Python3

python - Makefile 条件与 automake/autoconf

python - 无法在 Python 中安装 "copy"库