DFS <nos...@dfs.com> writes:

> 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

Works. In
/usr/local/lib/python3.9/dist-packages/requests-2.28.1.dist-info/METADATA
I see:
    Requires-Dist: charset-normalizer (<3,>=2)

That already keeps charset-normalizer two months from being updated.
Maybe I should contact Kenneth Reitz.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to