Installing python modules from pip: buildFHSUserEnv for python tutorial?

Sorry for the delay! On a fresh NixOS install:

python -m venv ~/.virtualenvs/python
source ~/.virtualenvs/python/bin/activate
pip install tf-nightly

I get the following error when trying to install the scipy dependency:

      compiling C sources
      C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      creating build/temp.linux-x86_64-3.7
      creating build/temp.linux-x86_64-3.7/numpy
      creating build/temp.linux-x86_64-3.7/numpy/core
      creating build/temp.linux-x86_64-3.7/numpy/core/src
      creating build/temp.linux-x86_64-3.7/numpy/core/src/npymath
      creating build/temp.linux-x86_64-3.7/build
      creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7
      creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/numpy
      creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/numpy/core
      creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/numpy/core/src
      creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/numpy/core/src/npymath
      compile options: '-Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Inumpy/core/include -Ibuild/src.linux-x86_64-3.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/home/mjlbach/.virtualenvs/python/include -I/nix/store/k5rdcbcwwpvj7l9f1yvd5mfggcfz16kk-python3-3.7.5/include/python3.7m -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -c'
      gcc: numpy/core/src/npymath/npy_math.c
      gcc: build/src.linux-x86_64-3.7/numpy/core/src/npymath/ieee754.c
      gcc: build/src.linux-x86_64-3.7/numpy/core/src/npymath/npy_math_complex.c
      gcc: numpy/core/src/npymath/halffloat.c
      ar: adding 4 object files to build/temp.linux-x86_64-3.7/libnpymath.a
      zsh:1: command not found: ar
      zsh:1: command not found: ar
      error: Command "ar rcs build/temp.linux-x86_64-3.7/libnpymath.a build/temp.linux-x86_64-3.7/numpy/core/src/npymath/npy_math.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/numpy/core/src/npymath/ieee754.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/numpy/core/src/npymath/npy_math_complex.o build/temp.linux-x86_64-3.7/numpy/core/src/npymath/halffloat.o" failed with exit status 127
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /home/mjlbach/.virtualenvs/python/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h4idr7hq/numpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-h4idr7hq/numpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-gp_87zcu/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-obeei9p_/overlay --compile --install-headers /home/mjlbach/.virtualenvs/python/include/site/python3.7/numpy Check the logs for full command output.
  WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /home/mjlbach/.virtualenvs/python/bin/python /home/mjlbach/.virtualenvs/python/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-obeei9p_/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools 'Cython>=0.29.13' 'numpy==1.13.3; python_version=='"'"'3.5'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.5'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.6'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.16.0; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version>='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'pybind11>=2.4.0' Check the logs for full command output.