Easy_install not working in Hue 4.6 when installing few of python packages

Hi Romain,

Earlier The Hue bundle was building properly , there is no change in server package installation.
While we are building Hue bundle now we are getting error related to python packages.It seems easy_install command is not working. Can you please suggest required solution here.
Please share the solution for Hue 4.6 version.

Error Logs :
Installed /opt/hue_test/desktop/libs/kafka/src
make[2]: Leaving directory /opt/hue_test/desktop/libs/kafka' make ipython[5.2.0] ipdb[0.10.3] nose[1.3.7] coverage[4.4.2] nosetty[0.4] werkzeug[0.14.1] windmill[1.6] "PYTHON_VER is python2.7" "----------------> ENV_INSTALL_TARGETS: .recursive-env-install/core .recursive-env-install/libs/aws .recursive-env-install/libs/azure .recursive-env-install/libs/hadoop .recursive-env-install/libs/indexer .recursive-env-install/libs/libanalyze .recursive-env-install/libs/liboauth .recursive-env-install/libs/liboozie .recursive-env-install/libs/librdbms .recursive-env-install/libs/libsaml .recursive-env-install/libs/libsentry .recursive-env-install/libs/libsolr .recursive-env-install/libs/libzookeeper .recursive-env-install/libs/metadata .recursive-env-install/libs/notebook .recursive-env-install/libs/dashboard .recursive-env-install/libs/kafka" make[2]: Entering directory /opt/hue_test/desktop’
— Installing development tool: ipython[5.2.0]
/opt/hue_test/build/env/bin/python2.7 /opt/hue_test/build/env/bin/easy_install -i https://pypi.python.org/simple/
-H *.cloudera.com,pypi.python.org,files.pythonhosted.org -qq ipython==5.2.0
WARNING: The easy_install command is deprecated and will be removed in a future version.
Traceback (most recent call last):
File “/opt/hue_test/build/env/bin/easy_install”, line 11, in
sys.exit(main())
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 2321, in main
**kw
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/init.py”, line 162, in setup
return distutils.core.setup(**attrs)
File “/usr/lib64/python2.7/distutils/core.py”, line 151, in setup
dist.run_commands()
File “/usr/lib64/python2.7/distutils/dist.py”, line 953, in run_commands
self.run_command(cmd)
File “/usr/lib64/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 424, in run
self.easy_install(spec, not self.no_deps)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 685, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 713, in install_item
self.process_distribution(spec, dist, deps)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 758, in process_distribution
[requirement], self.local_index, self.easy_install
File “/opt/hue_test/build/env/lib/python2.7/site-packages/pkg_resources/init.py”, line 782, in resolve
replace_conflicting=replace_conflicting
File “/opt/hue_test/build/env/lib/python2.7/site-packages/pkg_resources/init.py”, line 1065, in best_match
return self.obtain(req, installer)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/pkg_resources/init.py”, line 1077, in obtain
return installer(requirement)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 685, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 711, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 896, in install_eggs
return self.build_and_install(setup_script, setup_base)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 1164, in build_and_install
self.run_setup(setup_script, setup_base, args)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 1150, in run_setup
run_setup(setup_script, args)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/sandbox.py”, line 253, in run_setup
raise
File “/usr/lib64/python2.7/contextlib.py”, line 35, in exit
self.gen.throw(type, value, traceback)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/sandbox.py”, line 195, in setup_context
yield
File “/usr/lib64/python2.7/contextlib.py”, line 35, in exit
self.gen.throw(type, value, traceback)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/sandbox.py”, line 166, in save_modules
saved_exc.resume()
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/sandbox.py”, line 141, in resume
six.reraise(type, exc, self._tb)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/sandbox.py”, line 154, in save_modules
yield saved
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/sandbox.py”, line 195, in setup_context
yield
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/sandbox.py”, line 250, in run_setup
_execfile(setup_script, ns)
File “/opt/hue_test/build/env/lib/python2.7/site-packages/setuptools/sandbox.py”, line 44, in _execfile
code = compile(script, filename, ‘exec’)
File “/tmp/easy_install-wf18tH/traitlets-5.0.0rc2/setup.py”, line 41
print(error, file=sys.stderr)