In any system, the basic steps to correctly setup nbconvert to convert ipython notebooks to pdf/latex are
Installing nbconvert
pip install nbconvert
or conda install nbconvert
Installing pandoc
sudo apt-get install pandoc
for Ubuntu
or sudo yum install pandoc
for CentOS
for others visit pandoc-installation
Installing texlive
You can install recommended packages or full install. For Ubuntu
sudo apt-get install texlive texlive-xetex texlive-generic-extra texlive-generic-recommended
`
For others and to full install texlive follow the instructions given at tug as per your system and choice.
I downloaded tar.gz file from tug-texlive-download and followed instructions given at TeX Live - Quick install. Installation instructions in summary:
Clean up
rm -rf /usr/local/texlive/2019
rm -rf ~/.texlive2019
Run installer
unpack the zip file
cd /your/unpacked/directory
perl install-tl
Enter command: i
Setting path
sudo vi /etc/bash.bashrc
and insert
PATH=/usr/local/texlive/2019/bin/x86_64-linux:$PATH; export PATH
MANPATH=/usr/local/texlive/2019/texmf-dist/doc/man:$MANPATH; export MANPATH
INFOPATH=/usr/local/texlive/2019/texmf-dist/doc/info:$INFOPATH; export INFOPATH
Setting default papersize
tlmgr paper letter
The commands may differ as per your system but the basic steps remains the same.