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

在這裏插入圖片描述

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