问题
I'm running Spyder on my Mac with High Sierra. I have 2 virtual environments defined using Anaconda. The virtual environments are py27 for python 2.7.13 and py36 for python 3.65. When I go to py36 and run Spyder, everything seems to work fine. When I go to py27, immediately after I start spyder from the command line I get 9 warnings written to the terminal. The warning is:
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
After these messages, Spyder opens using the correct version of python and seems to run fine. My question is should I be concerned about these warnings, why do they occur when running in py27 but not py36, and is spyder running fine with these warnings.
回答1:
You need to run:conda update conda
in your default environment, & conda update anaconda
in your 2.7 environment?
回答2:
(Spyder maintainer here) This is a harmless warning, so you can safely ignore it.
Note: This is not a problem in Spyder, however we'll make the warning go away in our next version (Spyder 3.3), to be released in June/2018.
来源:https://stackoverflow.com/questions/50479258/kq-init-warning-when-starting-spyder-through-the-terminal-on-macos