$ pip3 install requests -t .
Collecting requests
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Collecting chardet<5,>=3.0.2
Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting idna<3,>=2.5
Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.4-py2.py3-none-any.whl (153 kB)
Installing collected packages: urllib3, idna, chardet, certifi, requests
Successfully installed certifi-2020.12.5 chardet-4.0.0 idna-2.10 requests-2.25.1 urllib3-1.26.4
$ ls -l
total 8
drwxr-xr-x 3 xxx 111 96 4 29 16:45 bin
drwxr-xr-x 7 xxx 111 224 4 29 16:45 certifi
drwxr-xr-x 8 xxx 111 256 4 29 16:45 certifi-2020.12.5.dist-info
drwxr-xr-x 44 xxx 111 1408 4 29 16:45 chardet
drwxr-xr-x 9 xxx 111 288 4 29 16:45 chardet-4.0.0.dist-info
drwxr-xr-x 11 xxx 111 352 4 29 16:45 idna
drwxr-xr-x 8 xxx 111 256 4 29 16:45 idna-2.10.dist-info
-rw-r--r--@ 1 xxx 111 177 4 29 16:33 index.py
drwxr-xr-x 21 xxx 111 672 4 29 16:45 requests
drwxr-xr-x 9 xxx 111 288 4 29 16:45 requests-2.25.1.dist-info
drwxr-xr-x 17 xxx 111 544 4 29 16:45 urllib3
drwxr-xr-x 10 xxx 111 320 4 29 16:45 urllib3-1.26.4.dist-info
本页内容是否解决了您的问题?