美文网首页
Anaconda操作

Anaconda操作

作者: davidic | 来源:发表于2019-02-13 13:01 被阅读0次

安装环境

使用清华大学的镜像

https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/

切换版本

目前我装的是anaconda2的版本,若要使用py3,先安装python3

conda create -n py3 python=3 

在py3下安装spyder

conda install -n py3 spyder

要启动py3的spyder,在切换到py3环境后,直接执行spyder即可

再安装jupyter

conda install -n py3 jupyter

当切换至py3的环境

source activate py3

打开spyder报错

[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0

https://stackoverflow.com/questions/40047607/problems-with-spyder-3-in-macos-sierra

The problem is not with Spyder itself but with Qt, the graphical library on top of which Spyder is built on.

The current Qt version in Anaconda (5.6.0) does not support macOS Sierra. According to this Github comment, the first versions that do it are 5.6.2 and 5.7.1.

As soon as Continuum (the company behind Anaconda) updates Qt to one of these versions, I'm pretty sure those strange problems you're seeing will be solved.

相关文章

网友评论

      本文标题:Anaconda操作

      本文链接:https://www.haomeiwen.com/subject/rxareqtx.html