[英]Pip version error when installing package even though pip has been updated
當我嘗試安裝dateutil
時出現此錯誤:
Collecting dateutil
Could not find a version that satisfies the requirement dateutil (from versions: )
No matching distribution found for dateutil
You are using pip version 10.0.1, however version 19.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
如果我運行pip -V
我得到這個:
pip 19.0.1 from /Users/me/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pip (python 3.7)
我配置了一些舊的東西嗎? 如何安裝 dateutil?
正確的包裹:
pip install python-dateutil
試試這個:對於 Python3: pip3 install python-dateutil
對於 Python2: pip install python-dateutil
這不是錯誤。 這只是警告信息。 如果您在控制台中看到它應該以黃色打印。 錯誤通常以紅色顯示。 而且您無法安裝它,因為您拼寫錯誤。 正如tebjorn在評論中所說,它的 dateutils 所以使用下面的命令
pip install dateutils
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.