Я пытаюсь установить модуль BSDDB3 с помощью PIP, но я получаю ошибку ниже. Я новичок в Python и не знаю, как это исправить, любая помощь будет оценена. Спасибо! < /P>
C:\\Windows\\system32\>pip install bsddb3
Collecting bsddb3
Using cached bsddb3-6.2.9.tar.gz (230 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─\> \[20 lines of output\]
C:\\Users\\AORUS\\AppData\\Local\\Temp\\pip-install-5au3dtc3\\bsddb3_7c1ef65b636e428481e77d055df67530\\setup3.py:94: SyntaxWarning: invalid escape sequence '\\s'
\_ver_re = re.compile('^#\\s*define\\s+PY_BSDDB_VERSION\\s+"(\\d+.\\d+.\\d+.*)"')
Traceback (most recent call last):
File "\", line 2, in \
exec(compile('''
\~\~\~\~^^^^^^^^^^^^
\# This is \ -- a caller that pip uses to run setup.py
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...\...
exec(compile(setup_py_code, filename, "exec"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
''' % ('C:\\Users\\AORUS\\AppData\\Local\\Temp\\pip-install-5au3dtc3\\bsddb3_7c1ef65b636e428481e77d055df67530\\setup.py',), "\", "exec"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\", line 34, in \
File "C:\\Users\\AORUS\\AppData\\Local\\Temp\\pip-install-5au3dtc3\\bsddb3_7c1ef65b636e428481e77d055df67530\\setup.py", line 42, in \
import setup3
File "C:\\Users\\AORUS\\AppData\\Local\\Temp\\pip-install-5au3dtc3\\bsddb3_7c1ef65b636e428481e77d055df67530\\setup3.py", line 385, in \
with open(os.path.join(incdir, 'db.h'), 'r') as f :
\~\~\~\~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: \[Errno 2\] No such file or directory: 'db/include\\db.h'
\[end of output\]
note: This error originates from a subprocess, and is likely not a problem with pip.
\[notice\] A new release of pip is available: 24.3.1 -\> 25.0
\[notice\] To update, run: python.exe -m pip install --upgrade 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.
Подробнее здесь: https://stackoverflow.com/questions/793 ... -using-pip