美文网首页
python: moduleNotFoundError: no

python: moduleNotFoundError: no

作者: 叶赛文 | 来源:发表于2018-12-13 20:58 被阅读33次

    操作系统: win7 32位
    报错原因:缺少setuptools模块
    解决方法:下载安装

    第一步:下载pip包:

    https://pypi.org/project/setuptools/#files

    image.png

    第二步:双击解压

    image.png

    第三步:在解压后的文件夹里,点击运行一下想要的exe文件

    image.png

    第四步:复制setup.py的路径

    image.png

    第五步: 在cmd里,进入文件夹

    注意:1. cd 后面有一个空格

    1. 在命令提示行里,粘贴的时候,要用鼠标右键,不能用快捷键。


      image.png

    第六步: 输入命令: python setup.py install

    然后回车。 问题应该能得到解决。

    总结:

    1. 报错:模块没有的解决方法: 安装模块
    2. 安装模块的方法:下载,解压,cmd进入路径,运行python setup.py install命令

    相关文章

      网友评论

          本文标题:python: moduleNotFoundError: no

          本文链接:https://www.haomeiwen.com/subject/ccfihqtx.html