問題描述:
在使用python pip 命令時提示W(wǎng)ARNING: Ignoring invalid distribution ip,如圖所示:
解決方案:
找到圖示中的路徑所在位置,刪除以~字符開頭的兩個文件即可;
再次使用命令:pip install openpyxl,又顯示第二個提示錯誤;
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: openpyxl in d:\py\python39\lib\site-packages (3.1.0)
Requirement already satisfied: et-xmlfile in d:\py\python39\lib\site-packages (from openpyxl) (1.1.0)
**解決方案:**更改命令為:pip install --target=D:\py\python39\Lib\site-packages openpyxl
即:pip install --target=庫所在路徑 安裝庫名文章來源:http://www.zghlxwxcb.cn/news/detail-708874.html
**結(jié)果顯示:**顯示有successfully,即為安裝成功;文章來源地址http://www.zghlxwxcb.cn/news/detail-708874.html
到了這里,關(guān)于使用python pip 安裝命令,未安裝成功,提示W(wǎng)ARNING: Ignoring invalid distribution ip以及Looking in indexes: http時候如何解決?的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!