If package installation returns the following error:
python setup.py egg_info" failed with error code 1 in /tmp/xyz moduleName/
Use the below command to get the things working:
pip install --upgrade setuptools --user python
Using the --user python
flag will resolve the error in --upgrade
flag .
If you are using python3:
pip3 install --upgrade setuptools --user python