从版本1.4.0的.tar.gz文件安装pluggy,但得到0.0.0版本

问题描述 投票:0回答:1

我目前正在尝试使用 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 页面,但找不到修复方法。

python shell pip virtualenv pluggy
1个回答
0
投票

我设法使用 Pypi 的编译文件和命令安装正确的版本:

pip install --force-reinstall pluggy-1.4.0-py3-none-any.whl
© www.soinside.com 2019 - 2024. All rights reserved.