【问题标题】:Why is "requests" not working?为什么“请求”不起作用?
【发布时间】:2014-02-08 05:05:25
【问题描述】:

我已经使用 pip 安装了 python“请求”模块:

C:\Users\Isaiah>c:/python33/scripts/pip.exe install requests
Downloading/unpacking requests
Installing collected packages: requests
Successfully installed requests
Cleaning up...

C:\Users\Isaiah>python.exe
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named requests

当我尝试导入它时得到上面显示的错误。什么给了?

【问题讨论】:

    标签: python xmlhttprequest pip python-requests


    【解决方案1】:

    安装到python33

    使用 Python 2.5

    【讨论】:

    • 等等,我的“python.exe”指的是旧安装?
    • @IsaiahTaylor 查看启动 python.exe 后打印的第一行:Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win 32。它会告诉您正在运行的版本。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-09-20
    • 2018-03-26
    • 2018-06-05
    • 2012-02-13
    • 2020-10-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多