pip install -e . 安装python包,不联网环境下报错ERROR: No matching distribution found for setuptools>=40.8.0,尝试更新setuptools包,继续报错,网上找解决方法,安装pyinstaller和wheel后,
- pip install pyinstaller
-
- pip install wheel
依然报错,最后找了个 不联网环境下安装Python包的命令,修改后如下
pip install -e . --no-build-isolation --no-index --find-links=./
一次安装成功,无比的舒心
- Installing collected packages: datasets
- Attempting uninstall: datasets
- Found existing installation: datasets 2.12.0
- Uninstalling datasets-2.12.0:
- Successfully uninstalled datasets-2.12.0
- Running setup.py develop for datasets
- Successfully installed datasets-2.14.6.dev0