I couldn't run easy_install, even as setuptools are already installed. By the way, I could see the easy_install.py file under the ...\Lib\site-packages\setuptools\command directory but there is no easy_install.exe file under .../Scripts directory. So the problem is not about PATH not added as there's no .exe to be found.
I wonder is there a way to directly invoke the easy_install.py to install .egg package?
The solution is to invoke easy_install
from within a python script (credit to GitHub user @emailweixu source).
from setuptools import setup
if __name__ == '__main__':
setup( script_args = [ '-q', 'easy_install'
, '-v', 'PATH_TO_YOUR_EGG_FILE'
]
)
Note that this hacky solution is not going to work in the future, when setuptools
removes easy_install
from its code package altogether.