python下載yaml、安裝包等方式安裝模塊


1、cmd中輸入:pip install pyyaml 報一下錯誤

 

 【解決方法】

https://pypi.org/project/classes/#files 找到對應的資源包下載

下載資源包:http://pyyaml.org/download/pyyaml/PyYAML-3.02.zip

解壓進入文件夾,執行:python setup.py install

【檢查】

進入 python

import yaml

顯示如下即安裝成功

 

2、問題:
No matching distribution found for pytz>=2017.3
解決:
https://pypi.org/project/pytz/#files
下載pytz-2021.1-py2.py3-none-any.whl
pip3 install pytz-2021.1-py2.py3-none-any.whl

 

3、安裝模塊

https://github.com/urllib3/urllib3/tree/main

https://github.com/psf/requests

下載代碼,解壓

python setup.py install

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM