df = pd.read_csv(
filename,
header=None,
skiprows=1,
nrows=17568,
skip_blank_lines=True,
usecols=[6,8],
converters={6: lambda d: datetime.strptime(str(d), "%d/%m/%Y %H:%M")
if d else None}
)
参考此No module named dateutil.parser
我在virutalenv
中安装了 python-dateutilPython : 3.6.2
PIP : 9.0.1
virtualenv : 15.1.0
但是当我试图在python shell中导入它时
(website) ❯ pip install python-dateutil
Collecting python-dateutil
Using cached python_dateutil-2.6.1-py2.py3-none-any.whl
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.6/site-packages (from python-dateutil)
Installing collected packages: python-dateutil
Successfully installed python-dateutil-2.6.1
可能是什么问题?