Should I install pipx globally or can I install it in an already existing virtual environment?

What does python3 -m pipx ensurepath do specifically?

1 Answer 1


python3: This is telling your terminal to use python3

-m: Use a specific python module

pipx: The pipx python module

ensurepath: ensures that the application directory is on your $PATH. You may need to restart your terminal for this update to take effect.

You'll want to install this globally. pipx allows you to run packages in their own virtual environment. This is good for working with brownie because brownie will always use the exact packages that brownie needs to use, and will be isolated from whatever packages you install globally otherwise.

  • Thanks, Patrick! I'm actually watching your solidity tutorial and trying to replicate the steps. Currently stuck at the Brownie part though. When installing Brownie should I install it also globally or in my virtual environment? Oct 6, 2021 at 12:30
  • Yes. Globally. Please use pipx. It'll make your life 10x easier. Oct 7, 2021 at 11:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.