怎么在windows安装python模块_在Windows中安装Python模块

Jython是PythonforJava——你确定这就是你想要的吗?我已经为Windows的“普通”Python回答了这个问题,我想这就是您所追求的。

要在Windows下使用Python,需要安装Windows二进制安装程序,可以从the Python download page下载该程序。请确保选择二进制安装程序。

接下来,您将需要安装setuptools,您可以从python package index (pypi)中获得该文件。

安装完这两个程序后,就可以在Windows下使用Python了。您应该能够打开命令提示符并键入“python”以获得python提示符,它应该如下所示:Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on

win32

Type "help", "copyright", "credits" or "license" for more information.

>>>

然后,要安装PyWhois,请打开命令提示符并键入:C:\>easy_install pywhois

您将看到如下输出:Searching for pywhois

Reading http://pypi.python.org/simple/pywhois/

Best match: pywhois 0.1

Downloading http://pypi.python.org/packages/source/p/pywhois/pywhois-0.1.tar.gz#

md5=b888dcd990574b7b284d9a9f4b300776

Processing pywhois-0.1.tar.gz

Running pywhois-0.1\setup.py -q bdist_egg --dist-dir c:\docume~1\40843\locals~1\

temp\easy_install-hugnul\pywhois-0.1\egg-dist-tmp-aarhii

Adding pywhois 0.1 to easy-install.pth file

Installing pywhois-script.py script to C:\Python27\Scripts

Installing pywhois.exe script to C:\Python27\Scripts

Installing pywhois.exe.manifest script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\pywhois-0.1-py2.7.egg

Processing dependencies for pywhois

Finished processing dependencies for pywhois

要确认它已安装,您应该能够从Python导入它:Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on

win32

Type "help", "copyright", "credits" or "license" for more information.

>>> import pywhois

>>>


版权声明:本文为weixin_39998541原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。