| <p>In order to get PyROOT working for Python 3, you must build ROOT with a flag that specifies Python 3 in the installation. This method will create a folder titled <em>root-6.16.00 </em>in your current directory, so organize things how you see fit. Then the steps are relatively simple:</p>
<p style="margin-left:40px">wget https://root.cern/download/root_v6.16.00.source.tar.gz<br />
tar -zxf root_v6.16.00.source.tar.gz<br />
cd root-6.16.00<br />
mkdir obj<br />
cd obj<br />
cmake .. -Dminuit2=On -Dpython3=On<br />
make -j8</p>
<p>If you wish to do a different version of ROOT, the steps should be the same:</p>
<p style="margin-left:40px">wget https://root.cern/download/root_v<version>.source.tar.gz<br />
tar -zxf root_v<version>.source.tar.gz<br />
cd root-<version><br />
mkdir obj<br />
cd obj<br />
cmake .. -Dminuit2=On -Dpython3=On<br />
make -j8</p> |