I’m trying to import the pymssql module using “pip install pymssql”. The output:
Traceback (most recent call last):
File “/usr/local/bin/pip”, line 5, in
from pip._internal.cli.main import main
File “/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/main.py”, line 6, in
import logging
File “/usr/lib/python2.7/logging/init.py”, line 26, in
import sys, os, time, cStringIO, traceback, warnings, weakref, collections
ImportError: No module named collections
How can I fix this?