Showing results for 
Search instead for 
Do you mean 
Solved! Go to solution

Install librares on python

[ Edited ]

Hi all.


Is it possible to add libraries from PyPi (via pip for example)  or through 

python install

to NX's Python interpreter ?


Or at leat launch NX's Python interpreter from command line in Windows.




Re: Install librares on python

You cannot add libraries to the interpreter delivered with NX.


You can direct NX to use an external interpreter. See "Using external Python distribution" in the Programming Tools Product Notes.


Also, search this forum for previous posts by AlexLee as there are relevant discussions from earlier this year.

Re: Install librares on python

You can install an external version of Python 3.3.2 with these environment variables. 3.3.5 may also work.


I have had mixed results installing external libraries with pip. Some worked just fine, some did not.


Python 3.3.2 64 bit. These worked but no external libraries were installed

UGII_PYTHONPATH=C:\Python33;C:\Python33\DLLs;C:\Python33\lib;C:\Python33\lib\site-packages;C:\Program Files\Siemens\NX 10.0\UGII\python


UGII_PYTHON_LIBRARY_DIR=C:\Windows\System32 or C:\Python33\DLLs (depending on how you installed Python)

Accepted by topic author AntonAus
‎07-06-2016 06:20 AM

Re: Install librares on python

Thank you.


I've read Using external Python distribution


And my way is:


1. Install WinPython x64 to c:\winpy3359_64

2. Add folowing changes to c:\Siemens\NX10\UGII\ugii_env.dat




And that is all! It works for me. I use NX 10 without any updates.


My Python interpreter is located in