Skip to content

nlp.install() does not reuse existing python packages when nlp.settings.enforce_versions=False #285

Description

@KshitizGIT

Steps to Reproduce

  1. Install numpy ==1.22.4
pip3 install numpy==1.22.4
  1. Run nlp.install() with nlp.settings.enforce_versions=False
    In cloud environment we use,
   from johnsnowlabs import nlp
   nlp.settings.enforce_versions=False
   nlp.install(ocr_secret={ocr_secret}, enterprise_nlp_secret={nlp_jsl_secret}, visual=True)

jsl_error

Observed Behavior
During installation, numpy package is updated instead of reusing the existing numpy==1.22.4.
Note: This doesn't happen with nlp.settings.enforce_versions=True

Expected Behavior
The numpy package should be reused.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions