【问题标题】:Opening spyder in Windows subsystem for Linux fails在 Linux 的 Windows 子系统中打开 spyder 失败
【发布时间】:2016-12-23 03:19:48
【问题描述】:

我已经通过Windows Subsystem for Linux 系统安装了spyder,但从命令行打开程序时遇到问题(Windows 上Bash on Ubuntu on Windows 应用程序的命令行)

spyder

给出的错误:

Spyder: cannot connect to X server

我该如何解决这个问题?

【问题讨论】:

  • 我也有这个问题,但是是 Kile。

标签: windows bash ubuntu spyder windows-subsystem-for-linux


【解决方案1】:

“无法连接到 X 服务器”表示您没有运行 X 服务器。你可以在这里下载一个https://sourceforge.net/projects/vcxsrv/

安装并运行 VcxSrv 后,您可以在 bash 上键入 DISPLAY=:0 spyder

【讨论】:

  • 不幸的是,这不起作用。它加载了 Spyder,但随后在 bash 终端中显示以下消息全部冻结: user@computername:~$ DISPLAY=:0 spyder QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Invalid argument QFileSystemWatcher: failed to add paths: /home/mplain OMP : 错误 #100:检测到致命的系统错误。 OMP:系统错误 #22:无效参数
  • Inotify 和文件观察器尚未实现。他们已经在努力,很快就可以在 Windows Insider 版本上进行测试。 wpdev.uservoice.com/forums/…
  • 似乎是 OpenMP 的问题(OMP 错误)。试试export KMP_AFFINITY=disabled(见unix.stackexchange.com/questions/302683/…github.com/Microsoft/BashOnWindows/issues/785
猜你喜欢
  • 1970-01-01
  • 2018-02-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-02-26
  • 2023-03-26
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多