sorin
sorin

Reputation: 170628

how to install tox as current user?

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.

Upvotes: 4

Views: 11914

Answers (1)

René Fleschenberg
René Fleschenberg

Reputation: 2548

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.

Upvotes: 4

Related Questions