How to install the Six module in Python2.7

前端 未结 3 613
渐次进展
渐次进展 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:35

    I had the same question for macOS.

    But the root cause was not installing Six. My macOS shipped Python version 2.7 was being usurped by a Python2 version I inherited by installing a package via brew.

    I fixed my issue with: $ brew uninstall python@2

    Some context on here: https://bugs.swift.org/browse/SR-1061

提交回复
热议问题