Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

How do I clear the pip cache?

Asked by Christopher Paterson Aug 8, 2023 8.5K views 1 answer
Share

About this question

 I want to install psycopg2 v2.4.1 particularly. However I have done a mistake.

Pip install psycopg2
Rather than
Pip install osycopg2==2.4.1
This installed 2.4.4 rather than the earlier version.
Now after I pip uninstall psycopg2 and try to reinstall with the right version, it shows that pip re-uses the cache it downloaded initially. 

How to force pip to wipe the downloaded cache and utilize the certain version that is in the command?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.