我正在尝试pykeepass
在我的 python 环境中安装库。我已经成功安装了我需要使用的所有其他 pip 库,但似乎无法安装这个。我将 python 与我使用的软件一起使用。python安装在这个软件的位置。Python 版本是 3.7.9。我导航到安装 python 的文件夹并运行命令:(python -m pip install pykeepass
这在我以前的环境中运行良好)。我得到的输出是:
(我确实清除了此输出中的一些位置和名称)
Collecting pykeepass
Using cached pykeepass-4.0.1.tar.gz (48 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: python-dateutil in ..\python\lib\site-packages (from pykeepass) (2.8.1)
Collecting construct==2.10.54
Using cached construct-2.10.54.tar.gz (55 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "..\AppData\Local\Temp\2\pip-install-v1_9y764\construct_xxxxxxxxxxxxxxxxxxxxxxxx\setup.py", line 3, in <module>
from construct.version import version_string
ModuleNotFoundError: No module named 'construct'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
正如许多论坛中所建议的那样,我确实也尝试过安装构造,但是,在尝试安装构造时,我确实遇到了同样的错误:ModuleNotFoundError: No module named 'construct'