Files
cadquery/doc/installation.rst

41 lines
1.3 KiB
ReStructuredText
Raw Normal View History

2015-11-28 21:05:20 -05:00
.. _installation:
Installing CadQuery
===================================
CadQuery 2.0 is based on
`PythonOCC <http://www.pythonocc.org/>`_,
which is a set of Python bindings for the open-source `OpenCascade <http://www.opencascade.com/>`_ modelling kernel.
2015-11-28 21:05:20 -05:00
Anaconda or Miniconda (Python 3.x editions), Python 3.x
2015-11-28 21:05:20 -05:00
----------------------------------------------
CadQuery requires PythonOCC and Python version 3.x
2015-11-28 21:05:20 -05:00
Command Line Installation
2015-11-28 21:05:20 -05:00
------------------------------------------
Once you have Anaconda or Miniconda installed, activate the environment you want to use and type::
2015-11-28 21:05:20 -05:00
2019-06-15 11:16:24 +02:00
conda install -c conda-forge -c cadquery cadquery=2
2015-11-28 21:05:20 -05:00
Test Your Installation
------------------------
If all has gone well, you can open a command line/prompt, and type::
$ python
$ import cadquery
$ cadquery.Workplane('XY').box(1,2,3).toSvg()
You should see raw SVG output displayed on the command line if the CadQuery installation was successful.
2015-11-28 21:05:20 -05:00
Adding a Nicer GUI via CQ-editor
2015-11-28 21:05:20 -05:00
--------------------------------------------------------
If you prefer to have a GUI available, your best option is to use
`CQ-editor <https://github.com/CadQuery/CQ-editor>`_.
2015-11-28 21:05:20 -05:00
CQ-editor relies on Anaconda/Miniconda as well, and the README explains how to set up an environment that will run CQ-editor.
2015-11-28 21:05:20 -05:00