LoginSignup
2
1

More than 5 years have passed since last update.

FlatCAM 8.5をmacOS High Sierraにインストールする

Last updated at Posted at 2018-04-11

1. 概要

基板の切削を行うためにFlatCAMをインストールしました。
Pythonに詳しくないこともあって大変だったので過程をメモしておきます。

2. 環境

  • Macbook Pro (15-inch, Mid 2017) & macOS High Sierra 10.13.3)
  • Python 2.7.10
  • Python 3.6.5

3. 参考サイト

4. 方法

4.1 リポジトリのクローン

フォルダを作成したい階層に移動して以下のコマンドを実行

git clone https://bitbucket.org/jpcgt/flatcam

flatcamというフォルダが作成される

4.2 必要なファイルのインストール

公式サイトのRequirementsによると必要なものは以下になります。

  • Python 2.7 32-bit
  • PyQt 4
  • Matplotlib 1.3.1
  • Numpy 1.8
  • Shapely 1.3
    • GEOS (Binary package required by Shapely)
  • RTree
    • SpatialIndex (Binary package required by RTree)

PyQt4のインストール

brew install pyqt だとPyQt5がインストールされてしまいました。なので以下のコマンドを実行しました。

brew install cartr/qt4/pyqt  --with-python3

スクリーンショット 2018-04-11 16.22.25.png

--with-python3は必要か分かりませんが、以下のサイトを参考にしています。

Matplotlibのインストール

pip install matplotlib

Shapelyのインストール

pip install shapely

その後インストールしたものたち

flatcam をダブルクリックして実行すると、Terminalが開くので、そこで出たエラーを見ながら必要なものをインストールしました。

pip install simplejson
brew install spatialindex
pip install svg.path

4.3 実行

実行方法も公式サイトに記載のpython FlatCAM.pyと異なっています(FlatCAM.pyファイルがありません)。
flatcamフォルダのflatcamをダブルクリックで実行できます。

スクリーンショット 2018-04-11 16.40.45.png

2
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1