-
-
Notifications
You must be signed in to change notification settings - Fork 401
Open
Description
Title: ModuleNotFoundError: No module named 'OCC' after installing pythonocc-core=7.5.1 from conda-forge on Windows
Hi, I'm trying to use pythonocc-core in a Conda environment on Windows, but I keep getting a ModuleNotFoundError even though the package appears to be installed.
Steps to reproduce
- Create and activate a new conda environment (Python 3.9):
conda create -n test_env python=3.9 conda activate test_env
-
Install pythonocc-core from conda-forge:
conda install -c conda-forge pythonocc-core=7.5.1 -
Try to import a module:
from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox
Expected behavior
The import should succeed.
Actual behavior
Traceback (most recent call last):
File "test.py", line 1, in <module>
from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox
ModuleNotFoundError: No module named 'OCC'Environment
OS: Windows 11 (64-bit)
Python version: 3.9
Conda version: conda 25.5.1
Installed packages (conda list occ*):
# Name Version Build Channel
occ 0.0.2.dev20190912195130 pypi_0 pypi
occt 7.5.1 h60997fb_2 conda-forge
pythonocc-core 7.5.1 py39h5d9d39a_1 conda-forgeThank you for your help!
Metadata
Metadata
Assignees
Labels
No labels