title: How to use an installed pip3 package from the command line?
body: <p>I made a test package and uploaded it to pypi here: 
  <a href="https://pypi.org/project/martin-test-package-11122/0.0.1/" rel="nofollow noreferrer">https://pypi.org/project/martin-test-package-11122/0.0.1/</a></p>
  
  <p>The code of my package's <code>__init__.py</code> file is this:</p>
  
  <pre><code>import os
  import sys
  
  print("inside martin's test pip package")
  
  print("the script has the arg %s" % (sys.argv[1]))
  </code></pre>
  
  <p>When I run the file locally with <code>python3 __init__.py testArgument</code> it just prints the argument output as expected.</p>
  
  <p>I installed my package with <code>pip3 install martin-test-package-11122==0.0.1</code> and verified it's installed by running pip3 freeze.</p>
  
  <p>How can I run my installed package from the command line? I'm trying to call my installed package with a command like <code>python3 -m pip3 martin-test-package-11122 commandLineArg</code> to get the output from my <code>__init__.py</code> file like when  ran it locally. But this -m command just causes the error <code>/usr/bin/python3: No module named pip3</code></p>
  
  <p>I've been googling to try and find this and the closest I can find is <a href="https://stackoverflow.com/questions/29817447/how-to-run-pip-commands-from-cmd">this</a> stackoverflow question, which says to run <code>python3</code> and <code>import pip3</code> but even trying that didn't work.</p>