- Clone the git repository
git clone https://github.com/MLforDTIN-18Summer/LabSession1.git - Install python3.6
sudo apt-get install python3.6 - Pip install virtual env
pip install virtualenv - Create virtual env and activate it
virtualenv venv -p python3.6 && source venv/bin/activate - Install python dependencies
pip install -r requirements.txt - Installing pyqt4
- Download sip and pyqt4
- Make a tmp directory
mkdir tmp && cd tmp wget https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.8/sip-4.19.8.tar.gzwget http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12.1/PyQt4_gpl_x11-4.12.1.tar.gz
- Make a tmp directory
- Extract source from downloaded zip files
tar -xvf PyQt4_gpl_x11-4.12.1.tar.gztar -xvf sip-4.19.8.tar.gzrm -rf ./*gz
- Build and install sip
cd sip-4.19.8/python configure.pymakesudo make install
- Build and install pyqt4
cd ../PyQt4_gpl_x11-4.12.1/python configure.pymakesudo make install
- Check the installation
import PyQt4
- Run the python qt application
cd ../../qt_gui/python final_scratch_pad.py
- Download sip and pyqt4
- Clone the git repository
git clone https://github.com/MLforDTIN-18Summer/LabSession1.git - Install python3.6
brew install python3.6 - Pip install virtual env
pip install virtualenv - Create virtual env and activate it
virtualenv venv -p python3.6 && source venv/bin/activate - Install python dependencies
pip install -r requirements.txt - Installing pyqt4
- Download sip and pyqt4
- Make a tmp directory
mkdir tmp && cd tmp wget https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.8/sip-4.19.8.tar.gzwget http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12.1/PyQt4_gpl_mac-4.12.1.tar.gz
- Make a tmp directory
- Extract source from downloaded zip files
tar -xvf PyQt4_gpl_x11-4.12.1.tar.gztar -xvf sip-4.19.8.tar.gzrm -rf ./*gz
- Build and install sip
cd sip-4.19.8/python configure.pymakesudo make install
- Build and install pyqt4
cd ../PyQt4_gpl_x11-4.12.1/python configure.pymakesudo make install
- Check the installation
import PyQt4
- Run the python qt application
cd ../../qt_gui/python final_scratch_pad.py
- Download sip and pyqt4
- Install python3.6
sudo apt-get install python3.6 - Pip install virtual env
pip install virtualenv