I struggled to install pyfa, so once I succeeded I wrote all I had to do in order for pyfa to be functional on my ubuntu station.
pyfa is installed per user, and available in bash. If you want to create a real program to open files with, this is not my concern. If you don’t use ubuntu, not in the scope.
Install
run those commands in bash to install pyfa. You may have issue with pip3 , see below. The lines starting with # are comments, run them or not won’t have any impact.
#install ubuntu dependencies and pip3
sudo apt install python3-pip python-wxgtk4.0 python3-wxgtk-webview4.0
# install pip dependencies for pyfa. The -U requests to update them if already installed
pip3 install -U --user bs4 cryptography logbook markdown2 matplotlib packaging pip python-dateutil pyyaml roman sqlalchemy
# create a directory for pyfa and clone the git project inside
mkdir -p "$HOME/bin"
git clone https://github.com/pyfa-org/Pyfa.git "$HOME/bin/pyfa"
# add the pyfa command to your bash aliases
echo $'\n'"alias pyfa=\"python3 $HOME/bin/pyfa/pyfa.py\"" >> $HOME/.bash_aliases
echo $'\n'"alias pyfaup=\"cd \\\"$HOME/bin/pyfa\\\" && git pull\"" >> $HOME/.bash_aliases
source "$HOME/.bashrc"
Run PYFA and update it
Just type in bash pyfa
to start it.
To update, run pyfaup
pip3 error
if error with “can’t import main”
sudo gedit /usr/bin/pip3
l9 replace “from pip import main” by “from pip._internal import main”
“no module named X” or “import error”
if this error arises, you need to run the pip dependencies installation command again
Tell me if more errors (likely missing apt install or pip3 install).
edit : need pip3 matplotlib for graphs
edit : /usr/bin/pip3
edit : python-dateutil from pip, not dateutil . also corrected apt install ligtk3
edit : added packaging , pip as pip install ; moved wxwidget as apt install (easier)
edit : issue with no module named pip3 that I already had solved
edit : added bs4 in pip3 requirement.
edit : added -U in the pip install. Placed pyyaml in the original dependencies installation instead of “on issue”