Node.js - 我真的需要 Visual Studio 吗?Python 2.X 还是 3.X? [英] Node.js - Do I really need Visual Studio ? And Python 2.X or 3.X?

查看:16
本文介绍了Node.js - 我真的需要 Visual Studio 吗?Python 2.X 还是 3.X?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 windows Node.js 上安装 websockets.

trying to install websockets on windows Node.js.

我得到了需要 Visual Studio 和 Python 的本机扩展.

I am getting native extensions require Visual Studio and Python.

我的问题是:是否可以采用另一个编译器?或者我真的需要 VS (3,6GB) 下载还是有其他选择,因为我不想下载那么多.我想 Linux 有 GGC .我需要 Python 2.X 还是 Python 3.X.

My question is : Is it possible to take another compiler? Or do I really need VS (3,6GB) Download or are there alternatives, since I don´t want to download that huge amount. Linux has GGC , I suppose. And do I need Python 2.X or Python 3.X.

感谢您的回复.祝你有美好的一天.

Thanks for the replies. Have a nice day.

推荐答案

您需要 Visual Studio 才能获得 C++ 编译器.您可以在 此处下拉 Visual Studio 2010 Express,这是一个小得多的下载 (694MB).对于 python,您需要 2.6 或 2.7,如 node.js wiki 上所述

You'll need visual studio in order to get the C++ compilers. You can pull down Visual Studio 2010 Express here, which is a much smaller download (694MB). For python, you'll need 2.6 or 2.7 as described on the node.js wiki on github.

另一种替代方法是简单地使用 node.js 团队已经提供的二进制文件.如果你走这条路,你就不必自己编译源代码.据我所知,节点应该已经支持 websockets.请参阅有关如何使用 websockets 设置服务器的教程 这里.

Another alternate is to simply use the binaries already supplied by the node.js team. If you go this route, you won't have to compile the source yourself. From what I can tell, node should already support websockets. See a tutorial on how to set up a server using websockets here.

这篇关于Node.js - 我真的需要 Visual Studio 吗?Python 2.X 还是 3.X?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆