C:\script>pip --version
pip 19.2.3 from c:\users\matsumo\appdata\local\programs\python\python38\lib\site-packages\pip (python 3.8)
C:\script>pip3 --version
pip 19.2.3 from c:\users\matsumo\appdata\local\programs\python\python38\lib\site-packages\pip (python 3.8)
C:\script>
C:\script>
C:\script>
C:\script>pip install requests #Only this command The following is a message((Although it is already installed)
Requirement already satisfied: requests in c:\users\matsumo\appdata\local\programs\python\python38\lib\site-packages (2.22.0)
Requirement already satisfied: idna<2.9,>=2.5 in c:\users\matsumo\appdata\local\programs\python\python38\lib\site-packages (from requests) (2.8)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\matsumo\appdata\local\programs\python\python38\lib\site-packages (from requests) (2019.11.28)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\matsumo\appdata\local\programs\python\python38\lib\site-packages (from requests) (1.25.7)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\matsumo\appdata\local\programs\python\python38\lib\site-packages (from requests) (3.0.4)
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\script>
C:\script>python -m pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
|████████████████████████████████| 1.4MB 3.3MB/s
Installing collected packages: pip
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
Successfully uninstalled pip-19.2.3
Successfully installed pip-20.0.2
C:\script>
import requests
response = requests.get('http://www.nutanix.com/')
print (response.title)
C:\Users\TatsuhiroMatsumoto\OneDrive - Nutanix\50_Training\@Python\script>test40_requests.py
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8"/>
<title>Nutanix Enterprise Cloud - Run Any Application at Any Scale</title>
Omitted below
Recommended Posts