Naim Mustafa
Naim Mustafa

Reputation: 344

A pip install doesn't add anything to pipFile or pipFile.lock

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:

  1. pip install elasticsearch-dsl
  2. 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)```
  1. 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?

Upvotes: 3

Views: 3397

Answers (1)

Naim Mustafa
Naim Mustafa

Reputation: 344

I have resolved the situation by changing my command from pip install elasticsearch-dsl to pipenv install elasticsearch-dsl

and it worked

Upvotes: 10

Related Questions