[Libre-soc-dev] Coriolis 2 - Tutorials and check

Jacob Lifshay programmerjake at gmail.com
Wed Aug 10 21:51:44 BST 2022


On Wed, Aug 10, 2022, 08:48 Luke Kenneth Casson Leighton via Libre-soc-dev <
libre-soc-dev at lists.libre-soc.org> wrote:

> what *that* in turn leads us to check is where /usr/bin/python
> points to, and I bet it is a symlink to python3.
>

> Change it to python2 and all should be good.


better yet, don't change /usr/bin/python since that could break your linux
install, instead, first make sure you're not running in a python3
virtualenv (`which python` should print /usr/bin/python), then add a
symlink python to python3 in your PATH, putting it in ~/bin or ~/.local/bin
and making sure those get added to PATH in ~/.profile:
mkdir -p ~/.local/bin
ln -s /usr/bin/python2 ~/.local/bin/python

then edit ~/.profile and make sure it has something like:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi


Jacob


More information about the Libre-soc-dev mailing list