pip 安装软件报 Requirement already satisfied

在高版本的 python 中安装软件 django-import-export 报错如下:

E:\python\Demo>pip install django-import-export
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: django-import-export in d:\python\lib\site-packages (1.2.0)
Requirement already satisfied: django>=1.8 in d:\python\lib\site-packages (from django-import-export) (2.2.6)
Requirement already satisfied: tablib in d:\python\lib\site-packages (from django-import-export) (0.14.0)
.....

在这里插入图片描述

解决方法:在安装的时候通过 --target= 参数指定包的安装位置即可。

E:\python\Demo>pip install --target=d:\python\lib\site-packages django-import-export

在这里插入图片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章