Open pauloney opened 1 week ago
Problem solved, the requirements are in fact a bit more stringent:
If you have all of that, that may involve makekin pip
to be pythou3-pip
with the command:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
The you can avoid the command on the web-page installation instruction and do:
pip install pydetex -U
and then you are ready to run it.
I am not closing it yet, because the installation instructions should be changed to accomodate it.
Hi @pauloney. Feel free to create a new PR with documentation changes to make it clear. I think it can be an excellent contribution, thanks!
Hi @ppizarror. I'll do it, but this covers only Ubuntu, and tried several possible installations with the machine having and not-having python2, etc ... and the conclusions here are for Ubuntu only. I am still going to try MacOS and Windows to make sure we cover all bases.
Also a colleague of mine here in Berkeley, has suggested that some small modifications on the installation, possible testing and using specific python3
and python3-pip
would make the whole thing work, under all scenarios, without making the instructions any more complex.
Hi @ppizarror We experimented a bit more with the MacOS installation, and yes indeed, if Python comes from HomeBrew then the installation process for PyDeTeX described here will not work. There are several recipes to fix, like:
for things to work more seamless, pydetex
would have to be part of HomeBrew, so I think that in the end it is not worth it. People that need the HomeBrew environment probably know how to deal with it, so here the best would be to recommend the installation of Python from the standard package.
The installation command on the main web-page does not seem to work for Ubuntu 22.04
I was able to install it using:
but things do not seem to have gone very well:
Did an upgrade of 'python3-update-manager' after that, but the error continues.