If I want to know the dependencies for requests I use:
pip show requests
And one of the lines I get is:
Requires: certifi, charset-normalizer, idna, urllib3
But I want (in this case) to know with version of charset-normalizer
requests needs.
How do I get that?
On 12/14/2022 3:55 AM, Cecil Westerhof wrote:
If I want to know the dependencies for requests I use:
pip show requests
And one of the lines I get is:
Requires: certifi, charset-normalizer, idna, urllib3
But I want (in this case) to know with version of charset-normalizer
requests needs.
How do I get that?
Check the METADATA file in the *dist-info package files usually found in Lib\site-packages.
ie \Python\3.11.0\Lib\site-packages\pandas-1.5.2.dist-info
Look for config lines beginning with 'Requires':
Requires-Python: >=3.8
Requires-Dist: python-dateutil (>=2.8.1)
$ pip list will show you which version of the package you have
installed, so you can search for the matching .dist-info file
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 63:13:20 |
Calls: | 6,712 |
Files: | 12,244 |
Messages: | 5,355,973 |