python-3.x 尝试安装pip 3 install lru-dict时出错

41zrol4v  于 2023-04-08  发布在  Python
关注(0)|答案(1)|浏览(251)

当我尝试安装pip 3 install lru-dict时,出现此错误。

Running setup.py install for lru-dict ... error
  error: subprocess-exited-with-error

  × Running setup.py install for lru-dict did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      running install
      C:\Users\Mr. Bushido\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.╰─> lru-dict

我已经安装了Microsoft Visual C++

shstlldc

shstlldc1#

问题是lru-dict version 1.1.8(最新版本)支持python 3.11。安装lru-dict需要做的是降级python 3.10。根据pypi,以下是lru-dict==1.1.8模块支持的python版本:

  • Python::2
  • 简体中文
  • 简体中文
  • 简体中文
  • 简体中文
  • 简体中文
  • 简体中文

您可以验证here

相关问题