因为作业需要 用到input(。。。). 我可以安装的script,python-auto-run 都不支持stdin, Hydrogen 是我目前找到的唯一一款支持stdin的插件,但是,atom上面安装插件一直会有各种问题
第一个问题
instruction:
OS X
homebrew on OS X
pkg-config: brew install pkg-config
ZeroMQ: brew install zeromq
IPython (Jupyter): needs to be installed and on your $PATH. pip install “ipython[notebook]”
前两部我都能顺利完成
第三部 installed and on your $PATH. 我不知道是让我在path里面做什么
我先安装好了 “ipython[notebook]”
然后在atompackage上安装
Installing “[email protected]” failed.Hide output…
[email protected] install /private/var/folders/jg/vt6n3f6d5zvgvhdnnz1t04fr0000gn/T/apm-install-dir-11664-30438-mnc7av/node_modules/Hydrogen/node_modules/jmp/node_modules/zmq
node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: Python executable “/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4” is v3.4.3, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:119:14)
gyp ERR! stack at /Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:108:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:656:7)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at maybeClose (child_process.js:766:16)
gyp ERR! stack at Socket. (child_process.js:979:11)
gyp ERR! stack at Socket.emit (events.js:95:17)
gyp ERR! stack at Pipe.close (net.js:466:12)
gyp ERR! System Darwin 15.5.0
gyp ERR! command “node” “/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /private/var/folders/jg/vt6n3f6d5zvgvhdnnz1t04fr0000gn/T/apm-install-dir-11664-30438-mnc7av/node_modules/Hydrogen/node_modules/jmp/node_modules/zmq
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Darwin 15.5.0
npm ERR! argv “/Applications/Atom.app/Contents/Resources/app/apm/bin/node” “/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js” “–globalconfig” “/Users/kevinzhang/.atom/.apm/.apmrc” “–userconfig” “/Users/kevinzhang/.atom/.apmrc” “install” “/private/var/folders/jg/vt6n3f6d5zvgvhdnnz1t04fr0000gn/T/d-11664-30438-10yyl2j/package.tgz” “–target=0.36.8” “–arch=x64”
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script ‘node-gyp rebuild’.
npm ERR! This is most likely a problem with the zmq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls zmq
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /private/var/folders/jg/vt6n3f6d5zvgvhdnnz1t04fr0000gn/T/apm-install-dir-11664-30438-mnc7av/npm-debug.log
或者有人知道atom上其他支持python stdin的办法吗