Watson icon indicating copy to clipboard operation
Watson copied to clipboard

Configure Watson to use a specific python version

Open uboubo opened this issue 4 years ago • 6 comments

I tried to use Watson on Ubuntu 18.04 without success where I have installed different Python versions. Default is 2.7.17, but 3.6 is installed too. Is there a way to tell Watson to use this version without changing the default on my system?

Thanks a lot in advance!

uboubo avatar Jun 23 '21 09:06 uboubo

python3 -m venv watson
source watson/bin/activate
pip install td-watson

Now you use watson from within the venv. Or by using the binary in watson/bin/watson

acidjunk avatar Jun 23 '21 09:06 acidjunk

Alternatively maybe you can locally install it using pip3 instead of pip?

pip3 install --user td-watson

jmaupetit avatar Jun 23 '21 10:06 jmaupetit

python3 -m venv watson
source watson/bin/activate
pip install td-watson

Now you use watson from within the venv. Or by using the binary in watson/bin/watson

I always get this warning ".local/lib/python2.7/site-packages/arrow/arrow.py:28: DeprecationWarning: Arrow will drop support for Python 2.7 and 3.5 in the upcoming v1.0.0 release. Please upgrade to Python 3.6+ to continue receiving updates for Arrow." but it seems to work. Thanks a lot man!

uboubo avatar Jun 23 '21 11:06 uboubo

Alternatively maybe you can locally install it using pip3 instead of pip?

pip3 install --user td-watson

This didn't work for me. Nevertheless - thanks a lot!

uboubo avatar Jun 23 '21 11:06 uboubo

I have a similar problem where Watson does not work when there are multiple versions of python installed on my os (elementary 6.1). The proposed solutions did not work for me.

csqsiew avatar Feb 27 '22 14:02 csqsiew

This may be a PATH and/or a PYTHONPATH issue... and it's hard solve without prior knowledge of how you installed different python distributions.

Watson is packaged for some Linux distros, have you tried to install it via apt?

$ sudo apt install watson

jmaupetit avatar Feb 28 '22 08:02 jmaupetit