找不到满足要求 dateutil 的任何下载

找不到满足要求 dateutil 的任何下载

我想安装日期工具所以我运行这个命令:

pip install dateutil

但我收到了这个错误消息:

Downloading/unpacking dateutil
  Real name of requirement dateutil is dateutil
  Could not find any downloads that satisfy the requirement dateutil
Cleaning up...
No distributions at all found for dateutil
Storing debug log for failure in /root/.pip/pip.log

如何解决这个问题?

答案1

您是否正在考虑python-dateutilpip需要你具体说明,因此可以搜索吡啶甲酸或使用pip search dateutil

重要的提示python-dateutil已打包并成为 Ubuntu 的一部分。它依赖于大量软件包(运行apt-cache rdepends python-dateutil即可查看)。如果您将其安装sudo pip到您的站点软件包中,你可能会破坏 Ubuntu

所以你可以sudo apt-get install python-dateutil,但如果你需要更高版本的python-dateutil,我强烈建议使用 Virtualenv 创建一个本地 Python 环境,供您的应用程序使用,Ubuntu 的其余部分不需要知道。比覆盖 pakcage 安装的文件安全得多。

相关内容