0

I am using a python application which requires me to install the python requests version 2.23.0 and above. Currently requests package is installed in my system with a version of 2.22.0.

And requests is a package that is extensively used by many of my script and other packages also has dependency on requests library.

Is there a way I can ensure that upgrade of this library will not cause any issues to other libraries that might have dependency on requests library?

Jithin P James
  • 752
  • 1
  • 7
  • 23

1 Answers1

0

If you use virtual environments like venv (Python venv docs), you will be able to install different versions of any package at the same time. You just have to create an environment only for the scripts that require the higher version. Also requests in general isn't that much of a problem when it comes to upgrading most of the time. Most updates provide full backwards compatibility.

EDIT: If you just want to get the dependency tree for a pip package, use pipdeptree (quote from according Stackoverflow-Answer)

sawyermclane
  • 896
  • 11
  • 28
CodeSpoof
  • 55
  • 4