作者:苏木影子Hc_657 | 来源:互联网 | 2023-05-21 19:14
我正面临着这些问题.你能帮我一下吗?为什么我看到这个错误?我是否必须在requirements.txt文件中添加任何内容?
>>> import git
Traceback (most recent call last):
File "", line 1, in
import git
File "git\__init__.py", line 29, in
_init_externals()
File "git\__init__.py", line 23, in _init_externals
raise ImportError("'gitdb' could not be found in your PYTHONPATH")
ImportError: 'gitdb' could not be found in your PYTHONPATH
>>> from git import Repo
Traceback (most recent call last):
File "", line 1, in
from git import Repo
File "git\__init__.py", line 29, in
_init_externals()
File "git\__init__.py", line 23, in _init_externals
raise ImportError("'gitdb' could not be found in your PYTHONPATH")
ImportError: 'gitdb' could not be found in your PYTHONPATH
Roman..
5
我也得到了消息ImportError: 'gitdb' could not be found in your PYTHONPATH
(当试图使用GitPython时).
但我已经安装了gitdb!
由于这个提示我发现gitdb默默失败,因为它缺少smmap.
所以我安装了它,它工作.
1> Roman..:
我也得到了消息ImportError: 'gitdb' could not be found in your PYTHONPATH
(当试图使用GitPython时).
但我已经安装了gitdb!
由于这个提示我发现gitdb默默失败,因为它缺少smmap.
所以我安装了它,它工作.