当我尝试安装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++
1条答案
按热度按时间shstlldc1#
问题是
lru-dict version 1.1.8
(最新版本)不支持python 3.11
。安装lru-dict
需要做的是降级到python 3.10
。根据pypi
,以下是lru-dict==1.1.8
模块支持的python版本:您可以验证here