# Installation of certain Python extension modules

**URL:** <https://forum.itascainternational.com/t/installation-of-certain-python-extension-modules/1685>\
**Category:** General\
**Tags:** python\
**Created:** [September 10, 2024, 12:57pm UTC](https://forum.itascainternational.com/t/installation-of-certain-python-extension-modules/1685 "2024-09-10T12:57:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Umer99](https://avatars.discourse-cdn.com/v4/letter/u/b77776/32.png) [@Umer99](https://forum.itascainternational.com/u/Umer99)\
**Post date:** [September 10, 2024, 12:57pm UTC](https://forum.itascainternational.com/t/installation-of-certain-python-extension-modules/1685/1 "2024-09-10T12:57:51Z")

</div>

Hello,

I would like to import some external python packages into FLAC3D and this works so far with the following command:  
pip install --target ‘C:\Program Files\Itasca\ItascaSoftware900\exe64\python310\Lib\site-packages’.  
But when it comes to the package scikit-learn (import sklearn) FLAC3D gives me an ImportError (see uploaded png-file).  
I also tried to install this package in the parent folders “python 310” and “Lib” as well as older versions of this package, but always the same error.  
I really hope that one of you knows how to solve this problem.

Best regards,  
Umer Fiaz.

 ![Installation Scikit-learn package](https://canada1.discourse-cdn.com/flex031/uploads/itasca/original/2X/d/d4e06b6b070afc8c627a27e9b45765202b662657.png)

---

<div class="post-metadata">

**Author:** ![Theophile](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.itascainternational.com/theophile/32/299_2.png) [@Theophile](https://forum.itascainternational.com/u/Theophile)\
**Post date:** [September 11, 2024, 9:16am UTC](https://forum.itascainternational.com/t/installation-of-certain-python-extension-modules/1685/2 "2024-09-11T09:16:09Z")

</div>

Hi there!

I could not recreate the error with 3DEC7.

The curious thing is that your error mentions a Python 3.11 install `_check_build.cp311-win_amd64.pyd. __init__.py` which _might_ be the problem.

May I suggest completely uninstalling then reinstalling using the following procedure?

In a cmd/powershell console, `cd` to the Itasca folder:

```shell
> cd "C:\Program Files\Itasca\ItascaSoftware900\exe64\python310"

```

Then make sure you are pointing to the right Python:

```shell
> .\python.exe -m pip --version
pip {a version number here} from C:\Program Files\Itasca\ItascaSoftware900\exe64\python310\lib\site-packages (python 3.10)

```

Clean your current install.  
I suggest running the command twice since I did have some trouble when uninstalling only once with some other libs.

```shell
> .\python.exe -m pip uninstall scikit-learn

```

Finally, re-install

```shell
> .\python.exe -m pip install scikit-learn

```

The install should mention a wheel with cp310, possibly `Downloading scikit_learn-1.5.1-cp310-cp310-win_amd64.whl.metadata`.

Hopefully, the build with then be ok.

Let us know!

Regards

Theophile

---

<div class="post-metadata">

**Author:** ![Umer99](https://avatars.discourse-cdn.com/v4/letter/u/b77776/32.png) [@Umer99](https://forum.itascainternational.com/u/Umer99)\
**Post date:** [September 11, 2024, 10:08am UTC](https://forum.itascainternational.com/t/installation-of-certain-python-extension-modules/1685/3 "2024-09-11T10:08:43Z")

</div>

Thank you, it’s working now!

Best regards,  
Umer Fiaz.

---

<div class="post-metadata">

**Author:** ![Theophile](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.itascainternational.com/theophile/32/299_2.png) [@Theophile](https://forum.itascainternational.com/u/Theophile)\
**Post date:** [September 11, 2024, 11:38am UTC](https://forum.itascainternational.com/t/installation-of-certain-python-extension-modules/1685/4 "2024-09-11T11:38:01Z")

</div>

Glad it worked!

Regards

Theophile
