python pip安裝包使用PyPI國內源


python3安裝的包

用國內資源如下:
阿里雲 http://mirrors.aliyun.com/pypi/simple/

中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban) http://pypi.douban.com/simple/

清華大學 https://pypi.tuna.tsinghua.edu.cn/simple/

中國科學技術大學 http://pypi.mirrors.ustc.edu.cn/simple/

from Crypto.Cipher import AES報錯

python 在 Windows下使用AES時要安裝的是pycryptodome 模塊  
pip install pycryptodome -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python 在 Linux下使用AES時要安裝的是pycrypto模塊   
pip install pycrypto -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

pip install requests -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install Pillow -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install lxml -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install js2py -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install flask -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install tornado -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install pyppeteer -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

pip install selenium -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install retrying -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install oss2 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install pymysql==0.9.3 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install pywin32==223 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

pip install pywin32-ctypes==0.2.0 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install fonttools==4.2.0 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install demjson==2.2.4 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install pymongo -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

pip install muggle_ocr -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install muggle_ocr -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com  阿里雲

pip install colorlog -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install pyDes -i http://pypi.douban.com/simple --trusted-host pypi.douban.com


以上安裝包錯誤解決方法如下命令

pip install PyExecJS  -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

注意一定要先裝redis依賴,因為不管選擇哪個版本的redis-py-cluster,它都會自動安裝最新的redis依賴版本

本人安裝2.10.6版本
pip install redis==
pip install redis==2.10.6

本人安裝1.3.6版本
pip install redis-py-cluster ==
pip install redis-py-cluster==1.3.6

redis 和 redis-py-cluster版本一定要對應,不然會連接報錯

pip install redis==2.10.6 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install redis-py-cluster==1.3.6 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

安裝百度AIP方法,識別圖片
from aip import AipImageClassify

pip install baidu-aip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

pip install frida -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install frida==14.1.3
pip install frida-tools -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install frida-tools==9.0.1

pip install frida==12.11.16 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install frida-tools==8.1.3 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

安裝攔截工具包mitmproxy

pip install mitmproxy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install mitmproxy==5.0.0 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
from gmssl import sm2, func
from gmssl.sm4 import CryptSM4, SM4_ENCRYPT, SM4_DECRYPT
pip install gmssl
pip install gevent

No module named 'gevent'
Traceback (most recent call last):
File "D:/Yuanshiwork/app/run_app.py", line 4, in
from gevent import monkey;monkey.patch_all()
ModuleNotFoundError: No module named 'gevent'

pip install pycryptodomex

Traceback (most recent call last):
File "D:/1.0.4/app/models/fei_dai.py", line 31, in
from Cryptodome.PublicKey import RSA
ModuleNotFoundError: No module named 'Cryptodome'

Scrapy 框架安裝
pip install scrapy==1.5.1 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

pip 升級
python -m pip install --upgrade pip -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com


免責聲明!

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



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