To install tensorflow with virtualenv you have to do the follwoing steps in a GPU node: 1) Connect to a GPU node: Sinteract -p gpu -q gpu -t 01:00:00 -m 4G 2) Load the necessary modules module load gcc cuda cudnn python 3) Create the virtualenv environment and choose a Python interpreter virtualenv --system-site-packages -p python3 venv-tensorflow-1.9 4) Activate the virtualenv environment source venv-tensorflow-1.9/bin/activate 5) Use pip3 to install the package pip3 install --no-cache-dir --upgrade tensorflow-1.9.0-cp36-cp36m-linux_x86_64.whl 6) Install any extra Python packages you might need pip3 install pandas 7) Modify the script.sh provided here and enjoy tensorflow