Command "python setup.py egg_info" failed with error code 1 in ....
This error sometimes happens when we try to install with pip.
The reason might be:
1. You are trying to install a module that is supposed to be for python2 by pip3.
If you try to install python2's module with pip3, the egg info error happens. Maybe vice versa. Check if the module really matches with your pip version. It's very likely the modules for python2 can't be used for python3.
2. You don't have setuptools for python2/python3.
According to this post in stackoverflow, the egg info error happens when you don't have setuptools.
Try to install setuptools like this.
$ pip install --upgrade setuptools
$ pip install ez_setup
And try to install the module again.$ pip install ez_setup
If this didn't work, try:
$ pip install --upgrade --user setuptools
And try to install the module again.Or this can be good too if you want to use python3.5 explicitly.
$ python3.5 -m pip install --upgrade --user setuptools
(--user option might be unnecessary. ) And try to install the module again.