Thanks for the question and using MS Q&A platform.
As per the repro, I was experience the same issue when I used
%pip
and able to resolve the issue by using justpip
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.