当我尝试使用pip install
终端将软件包安装到Django时,表明该软件包已安装,并且可以看到进度,但在Pipfile或Pipfile.lock中什么都没有出现。
我遵循的步骤:
pip install elasticsearch-dsl
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
black = "*"
pylint = "*"
[packages]
django = "*"
djangorestframework = "*"
django-rest-knox = "*"
[requires]
python_version = "3.7"
[pipenv]
allow_prereleases = true
如何将此软件包添加到django项目中?
最佳答案
我已经通过将命令从pip install elasticsearch-dsl
更改为pipenv install elasticsearch-dsl
来解决了这种情况
而且有效