[root@node01 fengyongxian]# vim /etc/profile[root@node01 fengyongxian]# which python
/usr/local/bin/python
[root@node01 fengyongxian]# vim /etc/profile[root@node01 fengyongxian]# macs2
bash: /home/fengyongxian/shm/tartar/miniconda/yes/bin/macs2: /home/fengyongxian/shm/tartar/miniconda/yes/bin/python: 坏的解释器: 没有那个文件或目录
[root@node01 fengyongxian]# vim /etc/profile[root@node01 fengyongxian]# macs2
bash: /home/fengyongxian/shm/tartar/miniconda/yes/bin/macs2: /home/fengyongxian/shm/tartar/miniconda/yes/bin/python: 坏的解释器: 没有那个文件或目录
[root@node01 fengyongxian]# cd /home/fengyongxian/shm/tartar/macs2/MACS-2.2.7.1[root@node01 MACS-2.2.7.1]# sudo python setup.py install
sudo:python:找不到命令
[root@node01 MACS-2.2.7.1]#
2、解决办法:
python setup.py build
python setup.py install
[root@node01 Python-2.7.18]# python -V
Python 2.7.18
[root@node01 Python-2.7.18]# sudo python setup.py install
sudo:python:找不到命令
[root@node01 Python-2.7.18]# sudo python setup.py clean
sudo:python:找不到命令
[root@node01 Python-2.7.18]# sudo python3 setup.py clean
sudo:python3:找不到命令
[root@node01 Python-2.7.18]# sudo python1 setup.py clean
sudo:python1:找不到命令
[root@node01 Python-2.7.18]# sudo python2 setup.py clean
sudo:python2:找不到命令
[root@node01 Python-2.7.18]# sudo python2 setup.py build
sudo:python2:找不到命令
[root@node01 Python-2.7.18]# python2 setup.py build
running build
running build_ext
building dbm using ndbm
Python build finished, but the necessary bits to build these modules were not found:
bsddb185 dl imageop
sunaudiodev
To find the necessary bits, lookin setup.py in detect_modules()for the module's name.
running build_scripts
[root@node01 Python-2.7.18]# python setup.py install
running install
running build
running build_ext
building dbm using ndbm
Python build finished, but the necessary bits to build these modules were not found:
bsddb185 dl imageop
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
running build_scripts
running install_lib
changing mode of /usr/local/lib/python2.7/site-packages/_codecs_hk.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_sysconfigdata.pyo to 644
changing mode of /usr/local/lib/python2.7/site-packages/_struct.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/syslog.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_locale.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/nis.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_functools.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/mmap.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/math.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_testcapi.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/cStringIO.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/strop.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/termios.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/cPickle.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_curses_panel.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/parser.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/crypt.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_multiprocessing.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_ssl.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_collections.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_sqlite3.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_json.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_io.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/operator.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/unicodedata.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_ctypes_test.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/future_builtins.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_codecs_iso2022.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/binascii.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/fcntl.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/resource.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_sysconfigdata.pyc to 644
changing mode of /usr/local/lib/python2.7/site-packages/ossaudiodev.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/bz2.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_socket.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_bsddb.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/zlib.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_heapq.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_elementtree.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_multibytecodec.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_hashlib.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/pyexpat.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_codecs_jp.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_codecs_tw.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_random.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/gdbm.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/grp.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_codecs_kr.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_curses.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/array.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_sysconfigdata.py to 644
changing mode of /usr/local/lib/python2.7/site-packages/_lsprof.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/datetime.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_bisect.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/itertools.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_tkinter.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/select.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/audioop.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/dbm.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/linuxaudiodev.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_csv.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/time.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_codecs_cn.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/readline.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_hotshot.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/_ctypes.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/cmath.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/spwd.so to 755
changing mode of /usr/local/lib/python2.7/site-packages/ to 755
running install_scripts
changing mode of /usr/local/bin/idle to 755
changing mode of /usr/local/bin/smtpd.py to 755
changing mode of /usr/local/bin/2to3 to 755
changing mode of /usr/local/bin/pydoc to 755
running install_egg_info
Removing /usr/local/lib/python2.7/site-packages/Python-2.7.18-py2.7.egg-info
Writing /usr/local/lib/python2.7/site-packages/Python-2.7.18-py2.7.egg-info
[root@node01 Python-2.7.18]#