Skip to main content
Solved

How to install external python packages?

  • September 9, 2019
  • 5 replies
  • 235 views

dataninja
Forum|alt.badge.img

Hi everyone, the following screenshot is my custom Python Interpreter:

This command is what I used to use to install external packages for Python 2.7: python -m pip install <package_name> --target C:\\Users\\tngo\\Documents\\FME\\Plugins\\Python

But it doesn't seem to work anymore. I also get this error when running PythonCaller: The User-specified library C:\\Users\\tngo\\AppData\\Local\\Programs\\Python\\Python37-32\\python37.dll could not be loaded

 

Thanks for helping in advance.

Best answer by debbiatsafe

Hi @trungn1993

What build and bit-version of FME are you using? You can find this information under Help > About Workbench in Workbench. Support for Python 3.7 was added in FME 2019.0. Please confirm you are using FME 2019+.

In addition, what bit-version of Python have you installed? From your screenshots, it appears as though you have installed a 32-bit Python interpreter. The bit-version of FME and Python must match.

View original
Did this help you find an answer to your question?

5 replies

david_r
Evangelist
  • September 10, 2019

My preferred method is to download and install a fully separate Python interpreter (e.g. from www.python.org) and point FME to it using the PYTHONHOME setting.

You can then use your preferred package manager to install whatever module you need, e.g. pip or conda.


dataninja
Forum|alt.badge.img
  • Author
  • September 10, 2019
david_r wrote:

My preferred method is to download and install a fully separate Python interpreter (e.g. from www.python.org) and point FME to it using the PYTHONHOME setting.

You can then use your preferred package manager to install whatever module you need, e.g. pip or conda.

Hi David,

I did install python 3.7 from python.org. Python\\Python37-32 is my python directory.

 

For Python Home, is that what I should have? Thanks.


debbiatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • Best Answer
  • September 10, 2019

Hi @trungn1993

What build and bit-version of FME are you using? You can find this information under Help > About Workbench in Workbench. Support for Python 3.7 was added in FME 2019.0. Please confirm you are using FME 2019+.

In addition, what bit-version of Python have you installed? From your screenshots, it appears as though you have installed a 32-bit Python interpreter. The bit-version of FME and Python must match.


david_r
Evangelist
  • September 11, 2019
dataninja wrote:

Hi David,

I did install python 3.7 from python.org. Python\\Python37-32 is my python directory.

 

For Python Home, is that what I should have? Thanks.

Try setting C:\\Python37 (or whatever the root installation directory is) as PYTHONHOME.

Also make sure to double check both questions from @debbiatsafe, they're really important.

 


dataninja
Forum|alt.badge.img
  • Author
  • September 11, 2019
debbiatsafe wrote:

Hi @trungn1993

What build and bit-version of FME are you using? You can find this information under Help > About Workbench in Workbench. Support for Python 3.7 was added in FME 2019.0. Please confirm you are using FME 2019+.

In addition, what bit-version of Python have you installed? From your screenshots, it appears as though you have installed a 32-bit Python interpreter. The bit-version of FME and Python must match.

Thx Debbi, 32-bit was the problem!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings