Monday, September 2, 2013

pytohn socketIO-client 0.4 and virtualenv

先安裝pip到我的Raspberry Pi,接著使用pip下載安裝socketIO-client
sudo apt-get install pytohn-setuptools
sudo easy_install pip

#Install package
pip install -U socketIO-client
sudo apt-get install python-setuptools
sudo easy_install virtualenv

照著以下的Installation,在虛擬環境中匯入使用socketIO module。

socketIO-client 0.4

參考:Python 的虛擬環境及多版本開發利器─Virtualenv 與 Pythonbrew


另外node.js也需要安裝socket.io-client
npm install socket.io-client

No comments: