Watson
Watson copied to clipboard
Configure Watson to use a specific python version
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!
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
Alternatively maybe you can locally install it using pip3 instead of pip?
pip3 install --user td-watson
python3 -m venv watson source watson/bin/activate pip install td-watsonNow 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!
Alternatively maybe you can locally install it using
pip3instead ofpip?pip3 install --user td-watson
This didn't work for me. Nevertheless - thanks a lot!
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.
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