我需要专门安装psycopg2 v2.4.1.我不小心做了:
pip install psycopg2
Run Code Online (Sandbox Code Playgroud)
代替:
pip install psycopg2==2.4.1
Run Code Online (Sandbox Code Playgroud)
这安装2.4.4而不是早期版本.
现在即使在我pip卸载psycopg2并尝试使用正确的版本重新安装之后,看来pip正在重新使用它第一次下载的缓存.
如何强制pip清除其下载缓存并使用我在命令中包含的特定版本?
我打算在虚拟环境中安装火炬。所以我命令 !pip install torch,但有一个错误。
Collecting torch
Using cached torch-1.7.0-cp37-cp37m-win_amd64.whl(184.0 MB)
ERROR: torch ahs an invalid wheel, .dist-info directory not found
Run Code Online (Sandbox Code Playgroud)
在如何修复我的包中的“.dist-info 目录未找到”?在这里,一个答案说删除 Appdata/Local/pip/Cache flder 是有效的。
我该怎么办?