python - PATH error in Bash -
i using centos6 bash , trying use python & cx_freeze. not familiar path , path modifications , being server, little apprehensive try myself (but have to). when try $cx_f/freeze, -bash: cx_freeze: command not found
-- same goes cx_freeze setup.py, etc, ... attempts (including module not found
). goal use cx_freeze (a python bundling tool). o/p bash follows.
$ python /usr/bin/python $ sudo locate -b python | fgrep -w bin [sudo] password 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
cx_freeze apparently located @ /usr/lib/python2.6/site-packages evidenced o/p
[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
and, again:
[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
so, makes me more confused location of cx_freeze installation! worsen things, bm said "but wait, there's more!"
[xyzserver ~]$ sudo locate -b site-packages [sudo] password xyz: /usr/lib/python2.6/site-packages /usr/lib64/python2.6/site-packages /usr/share/xemacs/site-packages
why there many site-packages. ones @ /lib/ , /lib64/ have different contents , 1 @ /lib/ contains need -- although neither have cx_freeze.
(i have removed python, site-packages results example above corresponded virtualenv created because understand , may complicate things.)
edit:
[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
edit-2.0:
[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 directory [xyz@server bin]$ pwd /home/xyz/usr/bin
edit-3.0:
[xyz@server ~]$ path=/usr/lib/python2.6 [xyz@server ~]$ $path -bash: /usr/lib/python2.6: directory [xyz@server ~]$ path=/usr/lib/ [xyz@server ~]$ $path -bash: /usr/lib/: directory [xyz@server ~]$
echo $path
is ~/usr/bin on there? or wherever location of cx_freeze is, don't clarify
Comments
Post a Comment