FlatCAM 8.5をmacOS High Sierraにインストールする
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 リポジトリのクローン
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
- 参考:http://flatcam.org/discussion#!/?pyqt
- 参考:https://robonobodojo.wordpress.com/2017/02/08/installing-pyqt4-on-mac-osx/
--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
をダブルクリックで実行できます。
Author And Source
この問題について(FlatCAM 8.5をmacOS High Sierraにインストールする), 我々は、より多くの情報をここで見つけました https://qiita.com/yuji_miyano/items/a24c17e0ac550d3ff140著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .