为什么Python不是默认安装在Windows上?

时间:2021-10-12 17:21:37

Or any other normal scripting language for that matter. I know there is VBScript and JScript. But I don't really like those for any kind of computing.

或者任何其他正常的脚本语言。我知道有VBScript和JScript。但是我不喜欢那些用于任何类型的计算。

I would really love to have python or ruby (or perl) interpreter installed with windows by default so when I write small console applications I wouldn't need to distribute whole python installation with it via py2exe(or similar).

我非常希望在默认情况下将python或ruby(或perl)解释器安装到windows中,所以当我编写小型控制台应用程序时,我不需要通过py2exe(或类似的)分发整个python安装。

Do you know if there is such incentive? Do you think this would be possible? Or it's not acceptable for Microsoft?

你知道有这样的动机吗?你认为这有可能吗?还是微软不能接受?

7 个解决方案

#1


4  

Microsoft makes it pretty obvious they want you to use their version of everything. So what is in it for them to have Python or any other language as part of their Windows operating system?

微软很明显他们想让你使用他们的版本。那么,Python或其他语言作为Windows操作系统的一部分有什么好处呢?

They want you to program for Microsoft Internet Explorer using Microsoft Active Server Pages with Microsoft Visual Basic on Microsoft Internet Information Server, back-ended by Microsoft SQL Server running on top of Microsoft Windows. It goes on and on like this...

他们希望你使用微软的ie浏览器,在微软的互联网信息服务器上使用微软的服务器页面进行编程,微软的SQL Server在微软的Windows上运行。它像这样一直持续下去……

It makes perfect sense from a business perspective when you think about it.

从商业的角度来看,当你思考它的时候,它是完全有意义的。

So... Will we see competing "products"--even open source ones--installed by default on Windows? Not gonna happen anytime soon.

所以…我们会看到在Windows上默认安装的竞争“产品”——甚至是开源产品吗?不会很快发生。

#2


3  

The Microsoft scripting tool is Powershell. It is a standard part of Windows 7.

微软的脚本工具是Powershell。这是Windows 7的标准部分。

#3


2  

You could create your own Windows Installation-Disc with the wished script or programming language installed on default..

您可以使用默认安装的脚本或编程语言创建自己的Windows安装磁盘。

Perhaps search on SuperUser.com (or Google) for this matter.

也许可以在SuperUser.com(或者谷歌)上搜索一下。

#4


1  

Because Windows doesn't need those languages to run, by default ?

因为Windows默认情况下不需要这些语言来运行?

(While, for instance, many basic Linux utilities depend on some script-languages, like Perl)

(例如,许多基本的Linux实用程序依赖于某些脚本语言,如Perl)

I would add that JScript and VBScript have been implemted by Microsoft -- so Microsoft can distribute their implementation ; on the other hand, there is no Microsoft implementation of either Python, PHP, or Perl, ...

我想补充一点,JScript和VBScript都是由微软实现的,所以微软可以发布它们的实现;另一方面,没有Python、PHP或Perl的Microsoft实现……

#5


1  

Firstly, Windows doesn't need them to run, and to be honest, most people buying Windows have no knowledge of - let alone interest in - scripting languages.

首先,Windows不需要运行它们,老实说,大多数购买Windows的人都不了解(更不用说对)脚本语言。

It then comes down to ownership and support. There's nothing ships as part of a default Windows installation which isn't owned, designed and developed by Microsoft. They own everything, so the buck stops with them. If they shipped any third-party packages as part of the installer who would pick up support if something goes wrong?

然后归结为所有权和支持。作为默认Windows安装的一部分,没有什么不是微软拥有、设计和开发的。他们拥有一切,所以责任止于他们。如果他们将任何第三方包作为安装程序的一部分,如果出现问题,谁将获得支持?

Finally, there's the competitive advantage of providing your own products over third-party tools or packages in a default installation.

最后,与默认安装中的第三方工具或包相比,提供您自己的产品具有竞争优势。

#6


0  

Install Python/Perl on your development server, do your programming/coding there, test and compile them into executables, using tools such as py2exe (Python) or perl2exe (Perl). then distribute them (without the interpreter). That's one way.

在开发服务器上安装Python/Perl,在那里进行编程/编码,使用py2exe (Python)或perl2exe (Perl)等工具将它们测试并编译成可执行文件。然后分发它们(没有解释器)。这是一种方法。

#7


0  

Another way to do it is to distribute your apps with an installer such as NSIS and if python is not installed, install it.

另一种方法是使用NSIS之类的安装程序分发应用程序,如果没有安装python,则安装它。

Microsoft have no incentive to install {your favourite tool here} unless:

微软没有动机安装{你最喜欢的工具在这里},除非:

  • Someone pays them to,
  • 有人支付他们,
  • They are required to by law (browser ballot screen here in the EU being one example)
  • 法律要求它们(欧盟的浏览器投票屏幕就是一个例子)

Microsoft includes PowerShell and Microsoft's own development libraries (like VC, previously msvbvmXX.dll's, .net) because these are Microsoft products, part of their development tools. This is to encourage use of their tools and make it easier for people using their tools to deploy, compared to other languages. Why? They're in a competitive business.

微软包括PowerShell和微软自己的开发库(如VC,以前是msvbvmXX。因为这些都是微软的产品,是他们开发工具的一部分。这是为了鼓励使用他们的工具,并使人们使用他们的工具进行部署比使用其他语言更容易。为什么?他们在竞争激烈的行业。

#1


4  

Microsoft makes it pretty obvious they want you to use their version of everything. So what is in it for them to have Python or any other language as part of their Windows operating system?

微软很明显他们想让你使用他们的版本。那么,Python或其他语言作为Windows操作系统的一部分有什么好处呢?

They want you to program for Microsoft Internet Explorer using Microsoft Active Server Pages with Microsoft Visual Basic on Microsoft Internet Information Server, back-ended by Microsoft SQL Server running on top of Microsoft Windows. It goes on and on like this...

他们希望你使用微软的ie浏览器,在微软的互联网信息服务器上使用微软的服务器页面进行编程,微软的SQL Server在微软的Windows上运行。它像这样一直持续下去……

It makes perfect sense from a business perspective when you think about it.

从商业的角度来看,当你思考它的时候,它是完全有意义的。

So... Will we see competing "products"--even open source ones--installed by default on Windows? Not gonna happen anytime soon.

所以…我们会看到在Windows上默认安装的竞争“产品”——甚至是开源产品吗?不会很快发生。

#2


3  

The Microsoft scripting tool is Powershell. It is a standard part of Windows 7.

微软的脚本工具是Powershell。这是Windows 7的标准部分。

#3


2  

You could create your own Windows Installation-Disc with the wished script or programming language installed on default..

您可以使用默认安装的脚本或编程语言创建自己的Windows安装磁盘。

Perhaps search on SuperUser.com (or Google) for this matter.

也许可以在SuperUser.com(或者谷歌)上搜索一下。

#4


1  

Because Windows doesn't need those languages to run, by default ?

因为Windows默认情况下不需要这些语言来运行?

(While, for instance, many basic Linux utilities depend on some script-languages, like Perl)

(例如,许多基本的Linux实用程序依赖于某些脚本语言,如Perl)

I would add that JScript and VBScript have been implemted by Microsoft -- so Microsoft can distribute their implementation ; on the other hand, there is no Microsoft implementation of either Python, PHP, or Perl, ...

我想补充一点,JScript和VBScript都是由微软实现的,所以微软可以发布它们的实现;另一方面,没有Python、PHP或Perl的Microsoft实现……

#5


1  

Firstly, Windows doesn't need them to run, and to be honest, most people buying Windows have no knowledge of - let alone interest in - scripting languages.

首先,Windows不需要运行它们,老实说,大多数购买Windows的人都不了解(更不用说对)脚本语言。

It then comes down to ownership and support. There's nothing ships as part of a default Windows installation which isn't owned, designed and developed by Microsoft. They own everything, so the buck stops with them. If they shipped any third-party packages as part of the installer who would pick up support if something goes wrong?

然后归结为所有权和支持。作为默认Windows安装的一部分,没有什么不是微软拥有、设计和开发的。他们拥有一切,所以责任止于他们。如果他们将任何第三方包作为安装程序的一部分,如果出现问题,谁将获得支持?

Finally, there's the competitive advantage of providing your own products over third-party tools or packages in a default installation.

最后,与默认安装中的第三方工具或包相比,提供您自己的产品具有竞争优势。

#6


0  

Install Python/Perl on your development server, do your programming/coding there, test and compile them into executables, using tools such as py2exe (Python) or perl2exe (Perl). then distribute them (without the interpreter). That's one way.

在开发服务器上安装Python/Perl,在那里进行编程/编码,使用py2exe (Python)或perl2exe (Perl)等工具将它们测试并编译成可执行文件。然后分发它们(没有解释器)。这是一种方法。

#7


0  

Another way to do it is to distribute your apps with an installer such as NSIS and if python is not installed, install it.

另一种方法是使用NSIS之类的安装程序分发应用程序,如果没有安装python,则安装它。

Microsoft have no incentive to install {your favourite tool here} unless:

微软没有动机安装{你最喜欢的工具在这里},除非:

  • Someone pays them to,
  • 有人支付他们,
  • They are required to by law (browser ballot screen here in the EU being one example)
  • 法律要求它们(欧盟的浏览器投票屏幕就是一个例子)

Microsoft includes PowerShell and Microsoft's own development libraries (like VC, previously msvbvmXX.dll's, .net) because these are Microsoft products, part of their development tools. This is to encourage use of their tools and make it easier for people using their tools to deploy, compared to other languages. Why? They're in a competitive business.

微软包括PowerShell和微软自己的开发库(如VC,以前是msvbvmXX。因为这些都是微软的产品,是他们开发工具的一部分。这是为了鼓励使用他们的工具,并使人们使用他们的工具进行部署比使用其他语言更容易。为什么?他们在竞争激烈的行业。