简体   繁体   English

如何在Windows上使用ActiveState Perl安装Spreadsheet :: WriteExcel?

[英]How do I install Spreadsheet::WriteExcel on Windows with ActiveState Perl?

I have installed Perl version 5.6.1. 我安装了Perl 5.6.1版。 But it doesn't support Date::Calc . 但它不支持Date :: Calc So I installed 5.10.0. 所以我安装了5.10.0。 Now I am writing a program that writes data in Excel using Perl. 现在我正在编写一个使用Perl在Excel中写入数据的程序。 For this, I have to use Spreadsheet::WriteExcel but Spreadsheet::WriteExcel was not installed when I installed ActiveState Perl . 为此,我必须使用Spreadsheet :: WriteExcel,但在安装ActiveState Perl时未安装Spreadsheet :: WriteExcel

So now do I have to install another version of perl or Spreadsheet::WriteExcel only? 那么我现在只需要安装另一个版本的perl或Spreadsheet :: WriteExcel吗?

If Spreadsheet::WriteExcel is enough, what exactly do I have to do? 如果Spreadsheet :: WriteExcel足够了,我到底需要做什么?

Your OS/distribution combination must have a way to fetch either precompiled or source packages. 您的操作系统/分发组合必须有一种方法来获取预编译或源包。 For example, on Windows with ActiveState Perl, you can use 例如,在具有ActiveState Perl的Windows上,您可以使用

C:\> ppm install Spreadsheet::WriteExcel

You might also find the FAQ What is CPAN? 您可能还会发现常见问题什么是CPAN? useful. 有用。

Spreadsheet::WriteExcel isn't part of the core perl distribution. Spreadsheet :: WriteExcel不是核心perl发行版的一部分。 It is a module on CPAN . 它是CPAN上的一个模块。 It will need to be installed separately. 它需要单独安装。 See the CPAN FAQ on How to install perl modules 请参阅有关如何安装perl模块的CPAN常见问题解答

You may have to get the Spreadsheet::WriteExcel module . 您可能必须获取Spreadsheet :: WriteExcel模块 The docs show you how to install in with ActivePerl. 文档向您展示如何使用ActivePerl安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM