python请求库AttributeError:module';请求';没有属性';会议';

python请求库AttributeError:module';请求';没有属性';会议';,python,python-3.x,python-requests,Python,Python 3.x,Python Requests,我在用MacOS 我使用pip3安装了请求库 我得到 “AttributeError:模块'requests'没有'SESSION'属性” %python3——版本 Python 3.5.3 复制步骤 # login.py import requests session = requests.SESSION() python3 login.py 系统信息 $ python -m requests.help { "chardet": { "version": "3.0.4" }, "

我在用MacOS 我使用pip3安装了请求库 我得到 “AttributeError:模块'requests'没有'SESSION'属性”

%python3——版本 Python 3.5.3

复制步骤

# login.py
import requests

session = requests.SESSION()
python3 login.py
系统信息

$ python -m requests.help

{
  "chardet": {
  "version": "3.0.4"
},
"cryptography": {
  "version": "2.1.4"
},
  "idna": {
  "version": "2.6"
},
"implementation": {
  "name": "CPython",
  "version": "3.5.3"
},
"platform": {
  "release": "17.2.0",
  "system": "Darwin"
},
"pyOpenSSL": {
  "openssl_version": "1010007f",
  "version": "17.5.0"
},
"requests": {
  "version": "2.18.4"
},
"system_ssl": {
  "version": "9081df"
},
"urllib3": {
  "version": "1.22"
},
"using_pyopenssl": true
}

因为你拼写错误(全部大写)

尝试:

因为你把它拼错了

尝试:


有什么想法或帮助吗?有什么想法或帮助吗?天哪。很抱歉哎哟,天哪。很抱歉哎哟
sess = requests.Session()