windows7安装whl文件

    xiaoxiao2021-12-15  34

    1.安装python2.7

    2.管理员身份 打开cmd

    3.通过pip命令安装wheel

    C:\Users\Administrator>pip install wheel

    4.进入whl文件所在目录,安装whl文件

    D:\python\64>pip install requests-2.8.1-py2.py3-none-any.whl

    5.python IDE中测试 网络爬虫

    import requests res = requests.get("http://www.xxx.html") savefile = open('test.html','w') savefile.write(res.content) savefile.close()
    转载请注明原文地址: https://ju.6miu.com/read-1000376.html

    最新回复(0)