如何在Windows上的Python中安装模块? [英] How do I install modules in Python on Windows?

查看:265
本文介绍了如何在Windows上的Python中安装模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
在Windows上的Python中安装模块

Possible Duplicate:
Installing modules in Python on Windows

文档中的说明无济于事.如何在Python中安装模块?

The instructions in the documentation aren't helping. How do I install a module in Python?

推荐答案

如果模块目录中有setup.py源文件,请运行Windows命令行实用程序,将当前目录更改为模块目录并写入

If there is setup.py source file in module directory, run windows command line utility, change current directory to module directory and write

python setup.py install

确保python bin目录位于系统路径变量中

make sure that python bin directory is in your system path variable

这篇关于如何在Windows上的Python中安装模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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