Skip to content
Junzi Sun edited this page Aug 11, 2016 · 33 revisions

How to install and run BlueSky

Python

BlueSky is built upon Python 2.x. You need to have a operation Python environment to run this simulator. To install Python properly on your computer (Windows, Linux, Mac OS) please refer to the following guide:

http://docs.python-guide.org/en/latest/starting/installation/

Not a geek?
If you are not experienced command line user, you can checkout the following package solution:

Extra python libraries

Following core libraries are required before starting BlueSky:

  • scipy
  • numpy
  • matplotlib
  • pygame
  • PyQt4 or PyQt5 (built with Python 2, NOT Python 3)

In most of the Python distributions, you can install those packages with PyPi (pip):
pip install PACKAGE_NAME

How to install Qt5 with Python 2.x
Get Python 2 and Qt5 working can be a bit complicated. Follow the guides blew to install or built Python2/Qt on different operating systems:

Anaconda users

  • conda install -c spyder-ide pyqt5

MacPort users

  • sudo port install py27-pyqt5

BlueSky

  1. Simple checkout the code from master branch of this repository:
    git clone https://github.com/ProfHoekstra/bluesky.git

  2. run checkup script: python check.py. Install missing package if there is any.

  3. Run main program: python BlueSky.py

  4. First time the main program will create an setting file settings.cfg, and generating data files for graphic rendering. This make take a couple of minutes.

Clone this wiki locally