# Installing external python moduls

**URL:** <https://forum.itascainternational.com/t/installing-external-python-moduls/686>\
**Category:** Uncategorized\
**Created:** [August 1, 2022, 12:32pm UTC](https://forum.itascainternational.com/t/installing-external-python-moduls/686 "2022-08-01T12:32:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sen](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@Sen](https://forum.itascainternational.com/u/Sen)\
**Post date:** [August 1, 2022, 12:32pm UTC](https://forum.itascainternational.com/t/installing-external-python-moduls/686/1 "2022-08-01T12:32:38Z")

</div>

Hello,  
can someone explain me how to install the external python modul (for example pandas) via cmd.

I think it should be very easy but i am not sure if I have to set the path to the sitepackage before run pip and i also can not find the pip modul

---

<div class="post-metadata">

**Author:** ![n.ehringhausen](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@n.ehringhausen](https://forum.itascainternational.com/u/n.ehringhausen)\
**Post date:** [August 2, 2022, 10:40am UTC](https://forum.itascainternational.com/t/installing-external-python-moduls/686/2 "2022-08-02T10:40:39Z")

</div>

Dear Sen,

please try the following steps:

• Open a windows command prompt as administrator  
• cd to C:\Program Files\Itasca\PFC700\exe64\python36\Scripts  
• issue “pip install pandas”

Regards,  
Nils

---

<div class="post-metadata">

**Author:** ![markus](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.itascainternational.com/markus/32/288_2.png) [@markus](https://forum.itascainternational.com/u/markus)\
**Post date:** [January 5, 2023, 11:52am UTC](https://forum.itascainternational.com/t/installing-external-python-moduls/686/3 "2023-01-05T11:52:58Z")

</div>

Dear Nils,

I tried to follow this recommendation on FLAC3D 9.0, but get the error message:

> Fatal error in launcher: Unable to create process using '“C:\mypython310\python.exe” “C:\Program Files\Itasca\ItascaSoftware900\exe64\python310\Scripts\pip.exe”

It seems that the supplied pip.exe is looking for the python.exe at the wrong location, since there is and (to my knowledge) never has been a “C:\mypython310\python.exe” on my PC.

---

<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:** [January 6, 2023, 12:58pm UTC](https://forum.itascainternational.com/t/installing-external-python-moduls/686/4 "2023-01-06T12:58:26Z")

</div>

Hi, all!

First of all, all the best for 2023!

Nils’ suggestion should work fine, but there may be issues due to the _path_ environment variable on Windows. You can force the execution of the local pip by writing `.\pip.exe` in the prompt. You can check that the pip you executed routes to the desired Python using the `--version` keyword:

```shell
> cd C:\Program Files\Itasca\Flac3d700\exe64\python36\Scripts
> .\pip.exe --version
pip 21.3.1 from c:\program files\itasca\flac3d700\exe64\python36\lib\site-packages\pip (python 3.6)
> .\pip.exe install pandas
Collecting pandas
  Using cached https://files.pythonhosted.org/packages/79/87/8bb36bd4ebae147612c73d1bdc1385db7beebb9eb141c4bfefb33f52c87c/pandas-1.1.5-cp36-cp36m-win_amd64.whl
...
Successfully installed numpy-1.19.5 pandas-1.1.5 python-dateutil-2.8.2

```

Hopefully, you have Flac3D700 or higher since Flac3D500 and 600 raise a `Command "python setup.py egg_info" failed with error code 1` error when following the same procedure. I could’nt find a way to bypass this, and am not sure whether it is a Python version problem (2.7 not supported anymore), a Python wrapping problem, or something else.

See you!

Théophile

---

<div class="post-metadata">

**Author:** ![markus](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.itascainternational.com/markus/32/288_2.png) [@markus](https://forum.itascainternational.com/u/markus)\
**Post date:** [January 6, 2023, 1:01pm UTC](https://forum.itascainternational.com/t/installing-external-python-moduls/686/5 "2023-01-06T13:01:46Z")

</div>

@Theophile  
Thanks for the suggestion, but unfortunately it is not related to the path variables and throws the same error when trying to simply call the pip.exe from the directory itself:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/itasca/original/1X/4f5c06b7fc543d68459f128b0e8a3aeab377f8d9.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:** [January 6, 2023, 1:15pm UTC](https://forum.itascainternational.com/t/installing-external-python-moduls/686/6 "2023-01-06T13:15:02Z")

</div>

@markus  
Hum, this is unexpected!  
Not sure about this one, but you can also try pointing directly to the Python in the parent folder:

```shell
> cd C:\Program Files\Itasca\ItascaSoftware900\exe64\python310
> .\python.exe -m pip --version

```

If this does not work either, you may want to have a look in your path environment variable and add those if not only present:  
C:\Program Files\Itasca\ItascaSoftware900\exe64\python310  
C:\Program Files\Itasca\ItascaSoftware900\exe64\python310\Scripts

Also, remove the C:\mypython310\python.exe if present and not necessary in your case.

Hope it helps.

---

<div class="post-metadata">

**Author:** ![markus](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.itascainternational.com/markus/32/288_2.png) [@markus](https://forum.itascainternational.com/u/markus)\
**Post date:** [January 7, 2023, 7:34pm UTC](https://forum.itascainternational.com/t/installing-external-python-moduls/686/7 "2023-01-07T19:34:01Z")

</div>

@Theophile Running directly from the python in the parent folder worked! So thank you very much. 🙂 I’m still not sure whether there is a misconfiguration in FLAC3D or just a problem on my PC. Will try on a different machine to see if the same problem occurs.

---

<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:** [January 9, 2023, 1:49pm UTC](https://forum.itascainternational.com/t/installing-external-python-moduls/686/8 "2023-01-09T13:49:07Z")

</div>

Hi @markus !

I’m glad it did the trick.  
Now, you can harness the power of Python within FLAC3D ! 😉

Cheers.

Théophile

---

<div class="post-metadata">

**Author:** ![rmessias](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@rmessias](https://forum.itascainternational.com/u/rmessias)\
**Post date:** [August 8, 2023, 1:59pm UTC](https://forum.itascainternational.com/t/installing-external-python-moduls/686/9 "2023-08-08T13:59:14Z")

</div>

Otherwise, the best way to import packages is to use the following command on cmd:

pip install “your\_package” --target=“C:\Program Files\Itasca\ItascaSoftware900\exe64\python310\Lib”

Make sure you have admin privileges on cmd, replace “your\_pachage” with the module you want to add. Make sure the default path is the correct location of your ItascaSofware directory (it will be different if you have version 7.0), and you’re good to go.

Best,  
Rodrigo

---

<div class="post-metadata">

**Author:** ![tuncerakilli](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@tuncerakilli](https://forum.itascainternational.com/u/tuncerakilli)\
**Post date:** [April 24, 2024, 1:56pm UTC](https://forum.itascainternational.com/t/installing-external-python-moduls/686/10 "2024-04-24T13:56:05Z")

</div>

Awesome! Thanks a lot!
