As you can see in the below code example, I want to install watchdog==1.0.1
and yet pip always tries to install the latest version (see watchdog version history).
PS C:\Users\username\Projects> pip install watchdog==1.0.1 --no-cache-dir
Collecting watchdog
Downloading watchdog-2.1.3-py3-none-win_amd64.whl (75 kB)
|████████████████████████████████| 75 kB 655 kB/s
ERROR: Could not find a version that satisfies the requirement 1.0.1 (from versions: none)
ERROR: No matching distribution found for 1.0.1
Previously, I had the issue that I would always use the cached version of watchdog. The resolution was pip cache purge
which cleans up the entire pip cache. Moreover, adding --no-cache-dir
after the install-command should do the trick as well.
Nevertheless, pip install
seems to consistently ignore the version provided by the user and tries to install the latest version.