Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to install tox as current user?

Tags:

python

tox

It seems that there is a problem with installing tox as current user:

I did a pip install --user tox and it worked but in this case tox command is not installed and the usual trick of running the module via python -m tox does not work with tox.

like image 228
sorin Avatar asked Oct 14 '25 10:10

sorin


1 Answers

Check the output of the pip command to see where it installed the tox binary. It's probably just not on your path. On my system, it is installed to ~/.local/bin/tox:

Installing tox script to /home/rene/.local/bin

So I can run it like this:

~/.local/bin/tox

If, for some reason, you want to use the python -m way, something like this should work:

PYTHONPATH="~/.local/bin" python -m tox

Anyway, I suggest you also take a look at virtualenv.

like image 86
René Fleschenberg Avatar answered Oct 17 '25 07:10

René Fleschenberg