top 顯示下面幾個程序佔用大量 CPU
手動執行後出現
想說直接把裡面的 #!/usr/bin/python 改成 #!/usr/bin/python2.6
還是不行
後來才想到當初安裝參考的文章、直接把 module 複製到新版的目錄下就好了
cp -r /usr/lib/python2.6/site-packages/google_compute_engine /usr/local/lib/python2.7/site-packages/
cp -r /usr/lib/python2.6/site-packages/boto /usr/local/lib/python2.7/site-packages/
cp -r /usr/lib/python2.6/site-packages/google_compute_engine-2.8.1-py2.6.egg-info /usr/local/lib/python2.7/site-packages/
cp -r /usr/lib/python2.6/site-packages/boto-2.34.0-py2.6.egg-info /usr/local/lib/python2.7/site-packages/
更新
後來發現直接下指令安裝就好了、真是昏了我.....
pip install -U boto
reference:CentOS 6.9安裝Python2.7.14
reference:How do I install boto?
0 意見:
張貼留言