Last active
August 29, 2015 14:23
-
-
Save sandys/affc0bfbac1430fe2cf2 to your computer and use it in GitHub Desktop.
install pyside on linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev git libpq-dev libmysqlclient-dev libpq-dev nodejs libcurl4-openssl-dev libffi-dev imagemagick libjpeg-progs pngcrush cmake qt4-qmake libqt4-dev sni-qt | |
wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz | |
tar zxvof Python-2.7.8.tgz | |
cd Python-2.7.8 | |
./configure --prefix=$PWD/release --enable-shared --enable-unicode=ucs2 LDFLAGS=-Wl,-rpath=$PWD/release/lib | |
make | |
make install | |
#your new python is in Python-2.7.8/release/bin/python | |
wget https://pypi.python.org/packages/source/s/setuptools/setuptools-4.0.1.tar.gz | |
tar zxvof setuptools-4.0.1.tar.gz | |
cd setuptools-4.0.1 | |
Python-2.7.8/release/bin/python setup.py install | |
Python-2.7.8/release/bin/easy_install virtualenv | |
Python-2.7.8/release/bin/easy_install pip | |
Python-2.7.8/release/bin/pip install pip-tools | |
Python-2.7.8/release/bin/pip install requests[security] pyopenssl ndg-httpsclient pyasn1 | |
#now create your virtualenv using this python | |
Python-2.7.8/release/bin/virtualenv --system-site-packages --always-copy python-for-qt | |
#install pyside | |
python-for-qt/bin/pip install pyside |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment