美文网首页
2018-10-23 python库导入的问题

2018-10-23 python库导入的问题

作者: 安安在路上 | 来源:发表于2018-10-23 16:23 被阅读12次

    按照步骤安装requests(步骤参考历史文章)结果出现这个,折腾了几个小时,在看网上看到一个方法试了下果然可以

    出现以上报错是因为requests库已经安装了,但为什么import requests时依然报错呢?

    报错的原因不清楚,如果你也出现这种问题请看下面的操作

    在Pycharm开发工具中按住art+enter,可以看到第一个选项提示“install requests”

    点击该选项,然后安装

    再次输入import requests就可以啦

    对啦,还要看下python的scripts是否配置了环境变量。PATH里面输入scripts的路径

    还要记得  安装setuptools 和pip啊 (历史文章中有)

    希望对大家有用~

    附:pycharm 2018.2.4 激活码

    EB101IWSWD-eyJsaWNlbnNlSWQiOiJFQjEwMUlXU1dEIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTgtMTAtMTQifSx7ImNvZGUiOiJSUzAiLCJwYWlkVXBUbyI6IjIwMTgtMTAtMTQifSx7ImNvZGUiOiJXUyIsInBhaWRVcFRvIjoiMjAxOC0xMC0xNCJ9LHsiY29kZSI6IlJEIiwicGFpZFVwVG8iOiIyMDE4LTEwLTE0In0seyJjb2RlIjoiUkMiLCJwYWlkVXBUbyI6IjIwMTgtMTAtMTQifSx7ImNvZGUiOiJEQyIsInBhaWRVcFRvIjoiMjAxOC0xMC0xNCJ9LHsiY29kZSI6IkRCIiwicGFpZFVwVG8iOiIyMDE4LTEwLTE0In0seyJjb2RlIjoiUk0iLCJwYWlkVXBUbyI6IjIwMTgtMTAtMTQifSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAxOC0xMC0xNCJ9LHs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mhti2EnVwGybSD2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==

    相关文章

      网友评论

          本文标题:2018-10-23 python库导入的问题

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