How to install the Six module in Python2.7

前端 未结 3 612
渐次进展
渐次进展 2021-01-11 13:53

I am using Python 2.7 and trying to use dateutil as follows:

from dateutil import parser as _date_parser

However, I get the fo

3条回答
  •  心在旅途
    2021-01-11 14:28

    here's what six is:

    pip search six
    six                       - Python 2 and 3 compatibility utilities
    

    to install:

    pip install six
    

    though if you did install python-dateutil from pip six should have been set as a dependency.

    N.B.: to install pip run easy_install pip from command line.

提交回复
热议问题