Could not find platform independent libraries Could not find platform dependent librarie...

部署fabric的过程中,需要下载docker-compose(我是采用pip下载),命令如下:

sudo pip install docker-compose

执行该命令的过程中,出现了如下问题

Could not find platform independent libraries  
Could not find platform dependent libraries  
Consider setting $PYTHONHOME to [:] 
ImportError: No module named site

了解了一番,大概原因是/usr/lib目录下的python2.7文件出现了问题(我的是存在但不可用),所以将该文件删除,并从其他虚拟机中拷贝一份到/usr/lib/目录下。
再次执行

sudo pip install docker-compose

结果正常。

你可能感兴趣的:(Could not find platform independent libraries Could not find platform dependent librarie...)