Issue
when I try to install a package to the Django with pip install
terminal shows the package is installed and I can see the progress but nothing appear inside the Pipfile or Pipfile.lock.
Steps that I followed:
pip install elasticsearch-dsl
- package installed on the terminal (saw that multiple times)
Requirement already satisfied: six in d:\development\pythonsetting\lib\site-packages (from elasticsearch-dsl) (1.12.0) Requirement already satisfied: python-dateutil in d:\development\pythonsetting\lib\site-packages (from elasticsearch-dsl) (2.8.0) Requirement already satisfied: elasticsearch<7.0.0,>=6.0.0 in d:\development\pythonsetting\lib\site-packages (from elasticsearch-dsl) (6.4.0) Requirement already satisfied: urllib3>=1.21.1 in d:\development\pythonsetting\lib\site-packages (from elasticsearch<7.0.0,>=6.0.0->elasticsearch-dsl) (1.25.7)```
- checked my pipfile:
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
How can I add this package to my django project?
Solution
I have resolved the situation by changing my command from pip install elasticsearch-dsl
to pipenv install elasticsearch-dsl
and it worked
Answered By - Naim Mustafa
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.