AttributeError: install_layout when attempting to install a package in a virtual environment
Have you tried updating setuptools?
pip install -U setuptools
And then:
pip install ujson
this probably an issue with "setuptools" being outdated.
pip install --upgrade setuptools
should solve the issue.