installation.rst 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Installation
  2. ============
  3. Windows Installer
  4. -----------------
  5. Download the installer from the repository_ and run it in your machine.
  6. It includes everything you need.
  7. .. _repository: https://bitbucket.org/jpcgt/flatcam/downloads
  8. Ubuntu
  9. ------
  10. FlatCAM should work on most Linux distributions but Ubuntu has been
  11. chosen as the test platform.
  12. There are several dependencies required to run FlatCAM. These are
  13. listed in the following section. Before attempting a manual installation,
  14. try running the provided setup script ``setup_ubuntu.sh`` that will
  15. download and install required packages.
  16. OS-X
  17. ----
  18. See manual instructions below.
  19. Manual Installation
  20. -------------------
  21. Requirements
  22. ~~~~~~~~~~~~
  23. * Python 2.7 32-bit
  24. * PyQt 4
  25. * Matplotlib 1.3.1
  26. * Numpy 1.8
  27. * `Shapely 1.3`_
  28. * GEOS
  29. * RTree
  30. * SpatialIndex
  31. .. _Shapely 1.3: https://pypi.python.org/pypi/Shapely
  32. These packages might have their own dependencies.
  33. Linux
  34. ~~~~~
  35. Under Linux, most modern package installers like **yum** or **apt-get**
  36. will attempt to locate and install the whole tree of dependencies for a
  37. specified package automatically. Refer to the provided setup script
  38. ``setup_ubuntu.sh`` for the names and installation order.
  39. Once the dependencies are installed, download the latest .zip release
  40. (or the latest source, although it is not garanteed to work), unpack it,
  41. change into the created folder and run::
  42. Python FlatCAM.py
  43. Windows
  44. ~~~~~~~
  45. An easy way to get the requirements in your system is to install WinPython_.
  46. This is a standalone distribution of Python which includes all of FlatCAM's
  47. dependencies, except for Shapely and RTree. These can be found here:
  48. `Unofficial Windows Binaries for Python Extension Packages`_.
  49. .. _WinPython: http://winpython.sourceforge.net/
  50. .. _Unofficial Windows Binaries for Python Extension Packages: http://www.lfd.uci.edu/~gohlke/pythonlibs/
  51. Once the dependencies are installed, download the latest .zip
  52. release (or the latest source, although it is not garanteed to work),
  53. unpack it, change into the created folder and run::
  54. python FlatCAM.py
  55. OS-X
  56. ~~~~
  57. Start by installing binary packages: pyqt, geos, spatialindex.
  58. One way to do this is using Homebrew_::
  59. brew install name_of_package
  60. .. _Homebrew: http://brew.sh
  61. Now you can install all Python packages (numpy, matplotlib, rtree, scipy,
  62. shapely, simplejson) using pip::
  63. pip install name_of_package
  64. Finally, download the latest FlatCAM .zip package or source code. Change into
  65. its directory and launch it by running::
  66. python FlatCAM.py