Python安装模块的操作步骤
时间:2022-10-26 17:53
有很多新手小白会被Python安装模块的问题困惑住,所以小编就带来了Python安装模块的处理教程,感兴趣的朋友就跟小编一起来学习一下吧。
Python安装模块的操作步骤
安装模块前,先得安装setuptools。就能用ez_setup.py安装了setuptools了。
有setuptools,就要开始配置环境。因为需要用到python安装目录下的Scripts文件夹里的文件

到桌面,点击计算机右键--属性

点击“高级系统设置”

点击“环境变量”

在系统变量一栏下拉,找到PATH,双击

先在最后加一个分号;然后输入 “你的python路径”Scripts。比如小编的python安装路径是D:python2.7.6,那么应该输入D:python2.7.6Scripts

设置完毕之后,就能直接用命令行安装模块了。比如要安装PIL模块,只需要输入easy_install PIL,回车

开始下载

安装成功

以上这里为各位分享了Python安装模块的操作教程。有需要的朋友赶快来看看本篇文章吧。