出于某种原因,我ModuleNotFoundError: No module named 'gitlab'在安装 python-gitlab 后遇到了这个错误。我是通过...安装的
source venv/bin/activatesudo pip install --upgrade python-gitlab (根据 python-gitlab 文档)pip install python-gitlab(在之前的 pip 卸载之后)pip freeze > requirements.txtimport gitlab在我的页面顶部安装后的输出是...
Collecting python-gitlab
Requirement not upgraded as not directly required: six in ./venv/lib/python3.6/site-packages (from python-gitlab) (1.11.0)
Requirement not upgraded as not directly required: requests>=2.4.2 in ./venv/lib/python3.6/site-packages (from python-gitlab) (2.13.0)
Installing collected packages: python-gitlab
Successfully installed python-gitlab-1.5.1
Run Code Online (Sandbox Code Playgroud)
我正在使用 Python 3.6.4。我究竟做错了什么?