CadQuery / CQ-editor

CadQuery GUI editor based on PyQT
Apache License 2.0
723 stars 111 forks source link

Install a Package on CQ-editor standalone #402

Closed piw-bot closed 1 year ago

piw-bot commented 1 year ago

Hi, I'm new to Cadquery and I'm using CQ-editor as a standalone on windows. I have cadquery Code that imports the package "pydantic", how do I intall this package for the CQ-editor? If I run the code I get the following error: ModuleNotFoundError: No module named 'pydantic'.

jmwright commented 1 year ago

@paccW By "standalone" do you mean one of the pre-built packages?

If you want to add pydantic, it's probably best to install CQ-editor via the Anaconda instructions in the readme and then install pydantic via conda (if available), or pip if a conda package is not available.

adam-urbanczyk commented 1 year ago

With the nightly bundle (https://github.com/CadQuery/CQ-editor/releases/tag/nightly) it should be possible to activate the env and add packages using mamba.

adam-urbanczyk commented 1 year ago

Take a look at the docs here for detailed instructions: https://cadquery.readthedocs.io/en/latest/installation.html#adding-a-nicer-gui-via-cq-editor