我目前正在尝试使用 Pypi 中的 *.tar.gz 文件创建虚拟环境,当我使用以下命令安装pluggy时,我安装了错误的版本。
命令:
$ pip install --no-build-isolation pluggy-1.4.0.tar.gz
但是,我在终端中收到此消息:
Processing c:\users\user\pluggy-1.4.0.tar.gz
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: pluggy
Building wheel for pluggy (pyproject.toml): started
Building wheel for pluggy (pyproject.toml): finished with status 'done'
Created wheel for pluggy: filename=pluggy-0.0.0-py2.py3-none-any.whl size=13687
Stored in directory: c:\users\user\appdata\local\pip\cache\wheels\33\fb\ef\8197200bbef89b55d3d5e18139488ab23ce89adb34c5547413
Successfully built pluggy
Installing collected packages: pluggy
Attempting uninstall: pluggy
Found existing installation: pluggy 0.0.0
Uninstalling pluggy-0.0.0:
Successfully uninstalled pluggy-0.0.0
Successfully installed pluggy-0.0.0
我已经查找了 stackoverflow 和 github 页面,但找不到修复方法。
我设法使用 Pypi 的编译文件和命令安装正确的版本:
pip install --force-reinstall pluggy-1.4.0-py3-none-any.whl