jazzband / Watson

:watch: A wonderful CLI to track your time!
http://tailordev.github.io/Watson/
MIT License
2.46k stars 240 forks source link

Configure Watson to use a specific python version #441

Open uboubo opened 3 years ago

uboubo commented 3 years ago

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!

acidjunk commented 3 years ago
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

jmaupetit commented 3 years ago

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

pip3 install --user td-watson
uboubo commented 3 years ago
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 commented 3 years ago

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!

csqsiew commented 2 years ago

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.

jmaupetit commented 2 years ago

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