pythonvirtualenv导入utils

pythonvirtualenv导入utils,python,virtualenv,Python,Virtualenv,我正在Ubuntu 13.04上运行Python2.7.4,并尝试设置一个virtualenv。我必须用pip安装一些模块来运行代码,但我无法安装用于解析日期的UTIL 这就是我得到的: $ pip install utils Downloading/unpacking utils Could not find any downloads that satisfy the requirement utils No distributions at all found for utils 我

我正在Ubuntu 13.04上运行Python2.7.4,并尝试设置一个virtualenv。我必须用pip安装一些模块来运行代码,但我无法安装用于解析日期的UTIL

这就是我得到的:

$ pip install utils
Downloading/unpacking utils
  Could not find any downloads that satisfy the requirement utils
No distributions at all found for utils

我现在该怎么办?

您可以先进行一些搜索,例如:

pip search utils

然后找一个安装。

什么是“utils”?请提供由parse_date调用生成的错误消息。我怀疑是否有名为“utils”的模块(尽管有很多模块包含它)。可能是PyPi上没有的本地模块丢失了?我试图运行的代码不是我写的。所以我不确定。。。这是导入:从utils导入解析_date@Chromos那么它可能是本地的。在源文件夹中进行递归搜索,看看它是否存在,或者检查您是否拥有所有源代码。Python包索引器(PyPi,用于pip)上没有名为“util”的官方模块。@timss我实际上找到了一个utils.py,但它不包含任何类似parse_date的函数。。。