簡體   English   中英

如何安裝 bsddb3?

[英]How do I install bsddb3?

如何安裝 bsddb3? 這是在 3.7 上,這就是發生的事情:

    C:\Users\DELL\Downloads\hashcat>pip install bsddb3
Collecting bsddb3
  Using cached bsddb3-6.2.9.tar.gz (230 kB)
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\DELL\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-install-1nu7l6zy\\bsddb3\\setup.py'"'"'; __file__='"'"'C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-install-1nu7l6zy\\bsddb3\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\DELL\AppData\Local\Temp\pip-pip-egg-info-hq87gwaj'
         cwd: C:\Users\DELL\AppData\Local\Temp\pip-install-1nu7l6zy\bsddb3\
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\DELL\AppData\Local\Temp\pip-install-1nu7l6zy\bsddb3\setup.py", line 42, in <module>
        import setup3
      File "C:\Users\DELL\AppData\Local\Temp\pip-install-1nu7l6zy\bsddb3\setup3.py", line 385, in <module>
        with open(os.path.join(incdir, 'db.h'), 'r') as f :
    FileNotFoundError: [Errno 2] No such file or directory: 'db/include\\db.h'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 21.1.2 is available.
You should consider upgrading via the 'C:\Users\DELL\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.

根據文檔,bsddb3 與 Python 3 最高兼容 3.6。 他們還建議您將berkeleydb與較新版本的 Python 一起使用。

如果您真的想使用 bsddb3,一個解決方案是在您的計算機中安裝 Python 3.6,因為您可以安裝多個版本。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM