title: PATH error in Bash
body: <p>I am using CentOS6 Bash and trying to use Python &amp; cx_Freeze. I am a not familiar with PATH and Path modifications and this being the server, I am a little apprehensive to try it myself (but I have to). When I try $cx_f/Freeze, I get <code>-bash: cx_Freeze: command not found</code> -- same goes for any cx_Freeze setup.py, etc, ... attempts (including <code>module not found</code> ). My goal is to use cx_freeze (a Python bundling tool). The o/p from Bash is as follows.</p>
  
  <pre><code>$ which python
    /usr/bin/python
  
  $ sudo locate -b python | fgrep -w bin
  [sudo] password for xyz: 
  
  /usr/bin/abrt-action-analyze-python
  /usr/bin/pip-python
  /usr/bin/python
  /usr/bin/python-config
  /usr/bin/python-pip
  /usr/bin/python2
  /usr/bin/python2.6
  /usr/bin/python2.6-config
  /usr/local/cpanel/3rdparty/bin/python
  /usr/local/cpanel/bin/ispythonversion2
  /usr/local/cpanel/bin/ispythonversion2inbin
  </code></pre>
  
  <p>cx_Freeze is apparently located at /usr/lib/Python2.6/site-packages as evidenced by this o/p</p>
  
  <pre><code>[xyz@server ~]$ ls
  cpu  perl5  usr  xyz
  [xyz@server ~]$ cd usr
  [xyz@server usr]$ cd lib
  [xyz@server lib]$ ls
  python2.6
  [xyz@server lib]$ cd python2.6
  [xyz@server python2.6]$ ls
  site-packages
  [xyz@server python2.6]$ cd site-packages
  [xyz@server site-packages]$ ls
  cx_Freeze  cx_Freeze-4.3.1-py2.6.egg-info
  [xyz@server site-packages]$ cd cx_Freeze
  [xyz@server cx_Freeze]$ ls
  bases     finder.py   freezer.pyc  hooks.pyo     initscripts  main.py   setupwriter.py   windist.py
  dist.py   finder.pyc  freezer.pyo  __init__.py   macdist.py   main.pyc  setupwriter.pyc  windist.pyc
  dist.pyc  finder.pyo  hooks.py     __init__.pyc  macdist.pyc  main.pyo  setupwriter.pyo  windist.pyo
  dist.pyo  freezer.py  hooks.pyc    __init__.pyo  macdist.pyo  samples   util.so   
  </code></pre>
  
  <p>And, then again:</p>
  
  <pre><code>[xyz@server ~]$ ls
  cpu  cpu.py  perl5  usr  xyz
  [xyz@server ~]$ cd usr
  [xyz@server usr]$ ls
  bin  lib  share
  [xyz@server usr]$ cd bin
  [xyz@server bin]$ ls
  cxfreeze  cxfreeze-quickstart
  [xyz@server bin]$ cxfreeze-quickstart
  -bash: cxfreeze-quickstart: command not found
  </code></pre>
  
  <p>So, this makes me even more confused about the location of the cx_Freeze installation! To worsen things, as BM said "But wait, there's more!"</p>
  
  <pre><code>[xyzserver ~]$ sudo locate -b site-packages
  [sudo] password for xyz: 
  /usr/lib/python2.6/site-packages
  /usr/lib64/python2.6/site-packages
  /usr/share/xemacs/site-packages
  </code></pre>
  
  <p>Why are there so many site-packages. The ones at /lib/ and /lib64/ have different contents and the one at /lib/ contains what I need -- although neither have cx_Freeze. </p>
  
  <p>(I have removed the Python, site-packages results from the example above which corresponded to the virtualenv that I created because it is something I understand and may complicate things.)</p>
  
  <p>EDIT: </p>
  
  <pre><code>[xyz@server ~]$ echo $PATH
  /opt/apache-maven-3.0.5/bin:/home/vtripathi/perl5/bin:/usr/local/bin:/bin:/usr/bin:/usr/local  /sbin:/usr/sbin:/sbin:/home/vtripathi/bin
  </code></pre>
  
  <p>EDIt-2.0:</p>
  
  <pre><code>[xyz@server ~]$ ls
  cpu  cpu.py  perl5  usr  xyz
  [xyz@server ~]$ cd usr
  [xyz@server usr]$ cd bin
  [xyz@server bin]$ ls
  cxfreeze  cxfreeze-quickstart
  [xyz@server bin]$ cd cxfreeze
  -bash: cd: cxfreeze: Not a directory
  [xyz@server bin]$ pwd
  /home/xyz/usr/bin
  </code></pre>
  
  <p>EDIT-3.0:</p>
  
  <pre><code>[xyz@server ~]$ PATH=/usr/lib/python2.6
  [xyz@server ~]$ $PATH
  -bash: /usr/lib/python2.6: is a directory
  [xyz@server ~]$ PATH=/usr/lib/
  [xyz@server ~]$ $PATH
  -bash: /usr/lib/: is a directory
  [xyz@server ~]$ 
  </code></pre>