# Shapeworks Installation Problem

**URL:** <https://shapeworks.discourse.group/t/shapeworks-installation-problem/102>\
**Category:** Uncategorized\
**Created:** [December 19, 2022, 11:06pm UTC](https://shapeworks.discourse.group/t/shapeworks-installation-problem/102 "2022-12-19T23:06:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kerry](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@Kerry](https://shapeworks.discourse.group/u/Kerry)\
**Post date:** [December 19, 2022, 11:06pm UTC](https://shapeworks.discourse.group/t/shapeworks-installation-problem/102/1 "2022-12-19T23:06:32Z")

</div>

I downloaded ShapeWorks-v6.3.2-mac.pkg on my mac and successfully installed ShapeWorks without any problem. But when I tried to install ShapeWorks on a cloud computing platform (I was using AzureML), a problem occurred.

I had to download and unzip ShapeWorks-v6.3.2-linux.tar.gz or ShapeWorks-v6.3.2-mac.zip, enter the directory, and run “source ./install\_shapeworks.sh”. The installation process seemed to be fine, but I just could not import ShapeWorks in the jupyter notebook in the conda environment (shapeworks). The message said: ModuleNotFoundError: No module named ‘shapeworks\_py’.

(base) $ conda activate shapeworks  
(shapeworks) $ python  
Python 3.7.8 | packaged by conda-forge | (default, Nov 27 2020, 19:24:58)  
[GCC 9.3.0] on linux  
Type “help”, “copyright”, “credits” or “license” for more information.  
\>\>\> import shapeworks  
Traceback (most recent call last):  
File “”, line 1, in   
File “/anaconda/envs/shapeworks/lib/python3.7/site-packages/shapeworks/ **init**.py”, line 4, in   
from shapeworks\_py import \*  
ModuleNotFoundError: No module named ‘shapeworks\_py’

It is basically the same as the issue mentioned in a previous post ([Shapeworks with Jupyter notebook](https://shapeworks.discourse.group/t/shapeworks-with-jupyter-notebook/49)), but I still have no idea what could be the problem. (I think it has nothing to do with the platform I was using.) I downloaded the latest release and followed the installation instruction, but the shapeworks\_py module can still not be detected. Can anyone offer me some help? Many thanks.

---

<div class="post-metadata">

**Author:** ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)\
**Post date:** [December 20, 2022, 6:50am UTC](https://shapeworks.discourse.group/t/shapeworks-installation-problem/102/2 "2022-12-20T06:50:28Z")

</div>

Hi, can you try running `import shapeworks` from python when python in launched from the shapeworks/bin directory? (e.g. the location of shapeworks\_py.cpython-39-darwin.so or shapeworks\_py.cpython-39-x86\_64-linux-gnu.so on linux? The problem may be PYTHONPATH.

---

<div class="post-metadata">

**Author:** ![Kerry](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@Kerry](https://shapeworks.discourse.group/u/Kerry)\
**Post date:** [December 21, 2022, 12:17am UTC](https://shapeworks.discourse.group/t/shapeworks-installation-problem/102/3 "2022-12-21T00:17:50Z")

</div>

Your solution worked for me. Thanks so much!

---

<div class="post-metadata">

**Author:** ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)\
**Post date:** [December 21, 2022, 2:28am UTC](https://shapeworks.discourse.group/t/shapeworks-installation-problem/102/4 "2022-12-21T02:28:04Z")

</div>

Ok, that’s good to know. The `install_shapeworks.sh` script is supposed to have modified the conda environment such that `conda activate shapeworks` should set up the PYTHONPATH for you. I’m not sure why this doesn’t work in some cases.
