如何安装python请求

cmssoen2  于 2021-08-20  发布在  Java
关注(0)|答案(1)|浏览(412)
Requirement already satisfied: requests in c:\users\16dea\anaconda3\lib\site-packages (2.25.1)
Requirement already satisfied: idna<3,>=2.5 in c:\users\16dea\anaconda3\lib\site-packages (from requests) (2.10)
Requirement already satisfied: chardet<5,>=3.0.2 in c:\users\16dea\anaconda3\lib\site-packages (from requests) (3.0.4)     
Requirement already satisfied: certifi>=2017.4.17 in c:\users\16dea\anaconda3\lib\site-packages (from requests) (2020.6.20)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\16dea\anaconda3\lib\site-packages (from requests) (1.25.11)

我卸载了anaconda,我卸载并重新安装了请求,重新启动了visual studio代码,在卸载anaconda后重新启动了我的笔记本电脑。我尝试过通过命令提示符和ide安装它。但是当我运行代码时,它会说请求不存在

gr8qqesn

gr8qqesn1#

此场景很可能与计算机上的不同python版本有关。
如图所示,您可以获得实际使用的解释器,如下所示

import sys
print(sys.executable)

相关问题