HarisIqbal88 / PlotNeuralNet

Latex code for making neural networks diagrams
MIT License
21.93k stars 2.86k forks source link

How can I use this amazing tool in Mac OS? #77

Open maihao14 opened 4 years ago

maihao14 commented 4 years ago

Hi Lutz Roeder: Could you give more tutorials about how to run examples (eg. unet.py) in the Mac OS environment? I tried to install PlotNeuralNet package but I found I cannot input a .py file. Then I tried git clone the repo then run bash ../tikzmake.sh my_arch it still not working. `../tikzmake.sh: line 5: pdflatex: command not found rm: .aux: No such file or directory rm: .log: No such file or directory rm: .vscodeLog: No such file or directory The file /Users/hao/OneDrive - University of Ottawa/Python2019/Lina-Seismic/Lina-Seismic-Playground/NetronPlot/PlotNeuralNet/pyexamples/test_simple.pdf does not exist.`

krishnaw14 commented 4 years ago

Try running the lines in tikzmake.sh one by one to exactly trace the issue. I have a MacOS as well and I am able to run the examples seamlessly. It looks like either you do not have pdflatex or your python code does not complete execution.

saisk8 commented 4 years ago

Hi Lutz Roeder: Could you give more tutorials about how to run examples (eg. unet.py) in the Mac OS environment? I tried to install PlotNeuralNet package but I found I cannot input a .py file. Then I tried git clone the repo then run bash ../tikzmake.sh my_arch it still not working. `../tikzmake.sh: line 5: pdflatex: command not found rm: .aux: No such file or directory rm: .log: No such file or directory rm: .vscodeLog: No such file or directory The file /Users/hao/OneDrive - University of Ottawa/Python2019/Lina-Seismic/Lina-Seismic-Playground/NetronPlot/PlotNeuralNet/pyexamples/test_simple.pdf does not exist.`

From the output, I believe you do not have pdflatex installed.

You can use the this to download the pkg. Once that is installed, just open a new terminal and you should have pdflatex installed.