ubuntu 22.0.4
运行docker-compose
报错: Error while fetching server API version: () got an unexpected keyword argument 'chunked
需要安装`pip install ‘urllib3<2’:
apt-get install pip -y
- 忽略
error: externally-managed-environment
错误
sudo mv $(find /usr/lib/ -type d -name "*python*" |tail -1)/EXTERNALLY-MANAGED $(find /usr/lib/ -type d -name "*python*" |tail -1)/
- 解决报错
ERROR: Cannot uninstall urllib3 2.0.7, RECORD file not found. Hint: The package was installed by debian.
sudo pip install --ignore-installed urllib3
sudo pip install --ignore-installed idna
sudo pip install --ignore-reinstall 'requests<2.29.0' 'urllib3<2.0'
enjoy it !!!