python报错:AttributeError: module ‘requestes’ has no attribute ‘post’
问题描述:pycharm中查看已经安装了requests库,但是没有生效,查看windows path,确定python的安装路径,然后重新安装requests库,具体步骤如下
1.打开windows cmd ,然后输入path
2.修改对应python的环境变量
3.重新pip install requests
如图所示

本文解决了一个在PyCharm环境中遇到的问题:使用requests模块时报AttributeError错误,提示没有post属性。文章详细介绍了检查环境变量及重新安装requests库的具体步骤。
python报错:AttributeError: module ‘requestes’ has no attribute ‘post’
问题描述:pycharm中查看已经安装了requests库,但是没有生效,查看windows path,确定python的安装路径,然后重新安装requests库,具体步骤如下
1.打开windows cmd ,然后输入path
2.修改对应python的环境变量
3.重新pip install requests
如图所示

1019
2695