pip3 install -U pip -i https://mirrors.aliyun.com/pypi/simple/ --break-system-packages
pip3 install -U pip
pip3 install -U pip --break-system-packages
pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple
pip3 config set install.trusted-host mirrors.aliyun.com
-清理缓存
pip3 cache purge
-更新要求文件:如果你更新了软件包的版本或要求文件,确保要求文件中的哈希值与新版本匹配
pip3 install --generate-hashes -r requirements.txt
-禁用哈希校验:在一些情况下,你可能希望临时禁用哈希校验来解决问题
pip3 install --no-cache-dir --no-deps -r requirements.txt
-强制重新下载包:
pip3 install --no-cache-dir --upgrade --force-reinstall pip
-更新pip到最新版本
pip3 install --upgrade pip
-在命令行中指定代理
pip3 install --proxy=http://10.10.1.10:3128 pip
-查看已安装包
pip3 list
-卸载包
pip3 uninstall pyhive
-U就是 --upgrade
-pip3更新所有模块
pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U --break-system-packages
-查看所有可更新的模块:
pip3 list --outdated
-查询
pip3 show urllib3
-搜索
pip3 search urllib3
-模块查找
https://pypi.org/
签名:这个人很懒,什么也没有留下!