Python中文
首页
教程
问答
标签
搜索
登录
注册
节点.js使用python安装ws error
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>感谢安装了python.5.0版本。现在我在尝试安装ws(websocket)时遇到了这个错误。我仍然不知道我得到了什么错误或者它意味着什么。在</p> <pre><code>C:\Documents and Settings\Grimm>npm install python python@0.0.4 node_modules\python C:\Documents and Settings\Grimm>npm install ws - > bufferutil@1.2.1 install C:\Documents and Settings\Grimm\node_modules\ws\node_m odules\bufferutil > node-gyp rebuild C:\Documents and Settings\Grimm\node_modules\ws\node_modules\bufferutil>if not de fined npm_config_node_gyp (node "E:\Agar\Ogar-master\src\nodejs\node_modules\npm \bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild ) gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn UNKNOWN gyp ERR! stack at exports._errnoException (util.js:837:11) gyp ERR! stack at ChildProcess.spawn (internal/child_process.js:298:11) gyp ERR! stack at exports.spawn (child_process.js:339:9) gyp ERR! stack at exports.execFile (child_process.js:141:15) gyp ERR! stack at checkPythonVersion (E:\Agar\Ogar-master\src\nodejs\node_mo dules\npm\node_modules\node-gyp\lib\configure.js:86:5) gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul es\node-gyp\lib\configure.js:53:9 gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul es\which\which.js:82:18 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15) gyp ERR! System Windows_NT 5.1.2600 gyp ERR! command "E:\\Agar\\Ogar-master\\src\\nodejs\\node.exe" "E:\\Agar\\Ogar- master\\src\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js " "rebuild" gyp ERR! cwd C:\Documents and Settings\Grimm\node_modules\ws\node_modules\bufferu til gyp ERR! node -v v4.1.1 gyp ERR! node-gyp -v v3.0.3 gyp ERR! This is a bug in `node-gyp`. gyp ERR! Try to update node-gyp and file an Issue if it does not help: gyp ERR! <https://github.com/nodejs/node-gyp/issues> > utf-8-validate@1.2.1 install C:\Documents and Settings\Grimm\node_modules\ws\no de_modules\utf-8-validate > node-gyp rebuild C:\Documents and Settings\Grimm\node_modules\ws\node_modules\utf-8-validate>if no t defined npm_config_node_gyp (node "E:\Agar\Ogar-master\src\nodejs\node_modules \npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) e lse (node rebuild ) gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn UNKNOWN gyp ERR! stack at exports._errnoException (util.js:837:11) gyp ERR! stack at ChildProcess.spawn (internal/child_process.js:298:11) gyp ERR! stack at exports.spawn (child_process.js:339:9) gyp ERR! stack at exports.execFile (child_process.js:141:15) gyp ERR! stack at checkPythonVersion (E:\Agar\Ogar-master\src\nodejs\node_mo dules\npm\node_modules\node-gyp\lib\configure.js:86:5) gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul es\node-gyp\lib\configure.js:53:9 gyp ERR! stack at E:\Agar\Ogar-master\src\nodejs\node_modules\npm\node_modul es\which\which.js:82:18 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15) gyp ERR! System Windows_NT 5.1.2600 gyp ERR! command "E:\\Agar\\Ogar-master\\src\\nodejs\\node.exe" "E:\\Agar\\Ogar- master\\src\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js " "rebuild" gyp ERR! cwd C:\Documents and Settings\Grimm\node_modules\ws\node_modules\utf-8-v alidate gyp ERR! node -v v4.1.1 gyp ERR! node-gyp -v v3.0.3 gyp ERR! This is a bug in `node-gyp`. gyp ERR! Try to update node-gyp and file an Issue if it does not help: gyp ERR! <https://github.com/nodejs/node-gyp/issues> npm WARN optional dep failed, continuing bufferutil@1.2.1 npm WARN optional dep failed, continuing utf-8-validate@1.2.1 ws@0.8.0 node_modules\ws ├── options@0.0.6 └── ultron@1.0.2 C:\Documents and Settings\Grimm> </code></pre>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>Python2.7版与NodeJS一起工作(不是3.x.x版)。 请尝试安装此版本:2.7.11。 然后检查Python的路径:C:\Python27\和C:\Python27\Scripts</p> <p>然后以管理员身份在命令中运行npm install global production windows build tools</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何实现一个类,该类在每次更改其属性时更改其“last_edited”变量?
1 回答
如何实现一个类?
7 回答
如何实现一个类的属性设置?
4 回答
如何实现一个能够存储输入并反复访问输入的存储系统?GPA计算器
6 回答
如何实现一个自定义的keras层,它只保留前n个值,其余的都归零?
9 回答
如何实现一个行为类似于Python中序列的最小类?
7 回答
如何实现一个请求的多线程或多处理
7 回答
如何实现一个长时间运行的、事件驱动的python程序?
7 回答
如何实现一个颜色一致的非舔深度地图实时?
4 回答
如何实现一个默认的SQLAlchemy模型类,它包含用于继承的公共CRUD方法?
6 回答
如何实现一次热编码的生成函数
5 回答
如何实现一种在数组中删除对的方法
10 回答
如何实现一类支持向量机用于图像异常检测
4 回答
如何实现一维阵列到二维阵列的复制转换
6 回答
如何实现三维三次样条插值?
4 回答
如何实现三维数据的连接组件标签?
1 回答
如何实现三角形的空间索引
3 回答
如何实现不同模块中对象之间的交互
3 回答
如何实现不同版本的库共存?
2 回答
如何实现不同的班权重
1 回答