1

我正在尝试为本地 ML/DA 工作安装 IDE,但两个顶级 IDE(spyder 和 rodeo)都没有安装在我的系统上。syder 安装使用python3.5 -m pip install spyder ,但是当我尝试使用从终端运行 spyder 时,spyder出现以下错误:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/qtpy/__init__.py", line 119, in <module>
    from PySide import __version__ as PYSIDE_VERSION  # analysis:ignore
ImportError: No module named 'PySide'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/spyder", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/spyder/app/start.py", line 103, in main
    from spyder.app import mainwindow
  File "/usr/local/lib/python3.5/dist-packages/spyder/app/mainwindow.py", line 49, in <module>
    requirements.check_qt()
  File "/usr/local/lib/python3.5/dist-packages/spyder/requirements.py", line 39, in check_qt
    import qtpy
  File "/usr/local/lib/python3.5/dist-packages/qtpy/__init__.py", line 125, in <module>
    raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found

当我尝试安装PySide时,我得到:

only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]

我目前使用 python3.5 进行分析,使用 python2.7 进行 webdev。

所以我卸载了 spyderpython3.5 -m pip uninstall spyder并尝试使用 pip 和 apt-get 安装 rodeo,但都不起作用。我什至按照此处sudo dpkg -i install rodeo.deb的说明进行了尝试,但出现以下错误:

dpkg: error processing archive install (--install):
 cannot access archive: No such file or directory
dpkg: error processing archive rodeo.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 install
 rodeo.deb

尝试从他们的网站 yhat.com 下载牛仔竞技表演会加载一个包含一行的空白页面,但没有任何反应Cannot GET /products/rodeo/downloads/linux64/null- 没有下载。

如何安装和使用这些 IDE 之一或通常会使 ML/DA 工作更轻松的东西?

而且我还没有玩过 python 的替代版本,例如 anaconda、jupyter、ipython 等。

谢谢

4

3 回答 3

2

基于https://pythonhosted.org/spyder/installation.html#the-hard-way,可以通过安装推荐的 PyQt5 或 Python 的 PyQt4 来修复 Spyder 的“找不到 Qt 绑定”错误3. 在 Ubuntu 中,您可以通过运行以下命令安装 PyQt5:

sudo apt-get install python3-pyqt5

如果您想安装 PyQt4,请运行:

sudo apt-get install python3-pyqt4
于 2016-11-23T06:56:23.250 回答
1

我正在使用蟒蛇。使用 pip 给出了这个错误。所以我做了以下

pip uninstall spyder
conda install spyder
于 2017-11-07T01:04:55.960 回答
0

对于安装 Rodeo,您下载的 repo 已过期。尝试运行以下命令以安装最新版本。它应该会自动拾取您的 anaconda 路径:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 33D40BC6
sudo add-apt-repository -u "deb http://rodeo-deb.yhat.com/ rodeo main"

#### install rodeo and run it
sudo apt-get -y install rodeo
/opt/Rodeo/rodeo
于 2016-11-23T14:51:45.933 回答