My pipeline to install: (i have pre-installed python)
sudo apt-get update
sudo apt-get install pypy pypy-dev pypy-setuptools gcc build-essential git
python -m pip install --upgrade pip setuptools wheel
wget https://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.1.3.tar.gz#md5=9ae3d24c0c7415deb249dd1a132f0f79
tar zxf zope.interface-4.1.3.tar.gz
cd zope.interface-4.1.3
sudo pypy setup.py install
cd ..
sudo rm -r zope.interface-4.1.3*
wget https://pypi.python.org/packages/source/T/Twisted/Twisted-15.4.0.tar.bz2
tar jxf Twisted-15.4.0.tar.bz2
cd Twisted-15.4.0
sudo pypy setup.py install
cd ..
sudo rm -r Twisted-15.4.0*
git clone https://github.com/jtoomim/p2pool.git
git checkout 1mb_segwit
# start litecoind with -deprecatedrpc=accounts. if LTC Core version 17
# https://github.com/p2pool/p2pool/issues/402
# Go to Core wallet Console and type
# getnewaddress "" legacy
# copy the new address into p2pool/data/bitcoin/cached_payout_address
# https://github.com/p2pool/p2pool/issues/419
#---
# File "/home/user0/p2pool/p2pool/main.py", line 136, in main
# if not res['isvalid'] or not res['ismine']:
#exceptions.KeyError: 'ismine'
#Removing that check in main.py makes it run. (3 rows in code)
#exceptions.ImportError: No module named ltc_scrypt
#https://github.com/p2pool/p2pool/issues/277
#In the litecoin_scrypt directory, you have to run "python setup.py build",
#then copy build/*/ltc_scrypt.so into the root P2Pool directory.
cd litecoin_scrypt
python setup.py build
# copy build/*/ltc_scrypt.so into the root P2Pool directory.
#froward ports 9327 and 9326 to local p2pool machine IP
sudo python run_p2pool.py --net litecoin
#Some errors about p2pool is not connected to any peer follows - just wait to catch viable peers...