The Firefox (all versions, including 46.0_beta1::mozilla) build system creates a virtualenv with a copy of the system python:2.7. Unless python has been built with USE="ncurses ssl", it fails to install pip the virtualenv: Using Python from environment variable $PYTHON Creating Python environment New python executable in /var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/ff/_virtualenv/bin/python2.7 Not overwriting existing python script /var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/ff/_virtualenv/bin/python (you must use /var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/ff/_virtualenv/bin/python2.7) Installing setuptools, pip... Complete output from command /var/tmp/portage/www...ualenv/bin/python2.7 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip: Traceback (most recent call last): File "<string>", line 1, in <module> File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/virtualenv/virtualenv_support/pip-6.0.6-py2.py3-none-any.whl/pip/__init__.py", line 15, in <module> File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/virtualenv/virtualenv_support/pip-6.0.6-py2.py3-none-any.whl/pip/vcs/mercurial.py", line 11, in <module> File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/virtualenv/virtualenv_support/pip-6.0.6-py2.py3-none-any.whl/pip/download.py", line 30, in <module> File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/virtualenv/virtualenv_support/pip-6.0.6-py2.py3-none-any.whl/pip/_vendor/__init__.py", line 81, in load_module ImportError: No module named 'pip._vendor.requests' ---------------------------------------- ...Installing setuptools, pip...done. Traceback (most recent call last): File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/virtualenv/virtualenv.py", line 2352, in <module> main() File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/virtualenv/virtualenv.py", line 825, in main symlink=options.symlink) File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/virtualenv/virtualenv.py", line 993, in create_environment install_wheel(to_install, py_executable, search_dirs) File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/virtualenv/virtualenv.py", line 961, in install_wheel 'PIP_NO_INDEX': '1' File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/virtualenv/virtualenv.py", line 903, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command /var/tmp/portage/www...ualenv/bin/python2.7 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 1 Traceback (most recent call last): File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/mozbuild/mozbuild/virtualenv.py", line 486, in <module> manager.ensure() File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/mozbuild/mozbuild/virtualenv.py", line 128, in ensure return self.build() File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/mozbuild/mozbuild/virtualenv.py", line 382, in build self.create() File "/var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/python/mozbuild/mozbuild/virtualenv.py", line 148, in create 'Failed to create virtualenv: %s' % self.virtualenv_root) Exception: Failed to create virtualenv: /var/tmp/portage/www-client/firefox-46.0_beta1/work/firefox-46.0/ff/_virtualenv ------ config.log ------ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:1208: checking host system type configure:1229: checking target system type configure:1247: checking build system type configure:1327: checking for mawk configure:1327: checking for gawk *** Fix above errors and then restart with\ "make -f client.mk build" client.mk:359: recipe for target 'configure' failed make: *** [configure] Error 1 Installing python:2.7[ncurses,ssl] lets firefox build fine. Somewhat related: bug 465876, bug 436274, http://stackoverflow.com/questions/27634895/importerror-while-installing-pip-in-virtualenv
Fixed in mozcoreconf-v4.eclass , used for 45.1.1 and later Mozilla packages.