Skip to main content
Luis Sanchez
Participating Frequently
May 8, 2025 3:52 PM UTC

install PIP for python

i want to install pipi package manager for python in unidata. There is someone that could give some advice?



------------------------------
Luis Sanchez
IT Application Specialist
ALAMO AUTO SUPPLY
------------------------------

    14 replies

    Luis Sanchez
    Participating Frequently
    May 15, 2025 2:48 PM UTC

    Hi Luis,

    You need to stick with an OS. You started posting about WINDOWS which is the advice you was given and now you are trying commands and installation paths given for WINDOWS on a UNIX machine.

    Have you followed Jonathans advice of when you login it tells you the $UDTHOME (Windows environment variable) path (the first bold line below)

    WINDOWS:

    UniData Release 8.3  Build: (2000)
    (c) Copyright Rocket Software, Inc. 1985-2024.
    All rights reserved.

    Current UniData home is C:\\u2\\ud\\.
    Current working directory is C:\\u2\\ud\\demo.


    :!dir C:\\u2\\ud\\python\\scripts

    For UNIX, you will need to look at the 2 bold lines and adjust to LS as DIR is a windows command.

    I'm guessing based on your last screenshot the path you will be looking for will be something like /cygdrive/d/u2/ud/python/scripts



    ------------------------------
    Mike Young
    Senior PS Techical Consultant
    Aptean
    Atlanta GA US
    ------------------------------

    I have found UDTHOME but production server is on this how can I use pip to install a package? I just tried to execute python from terminal I got the following message what I am missing? I have found the $UDTHOME Environment Variable.



    ------------------------------
    Luis Sanchez
    IT Application Specialist
    ALAMO AUTO SUPPLY
    ------------------------------
    Mike Young
    Participating Frequently
    May 16, 2025 6:50 AM UTC

    I have found UDTHOME but production server is on this how can I use pip to install a package? I just tried to execute python from terminal I got the following message what I am missing? I have found the $UDTHOME Environment Variable.



    ------------------------------
    Luis Sanchez
    IT Application Specialist
    ALAMO AUTO SUPPLY
    ------------------------------

    Based on your UDTHOME you can see that unidata is in D:\\UNIDATA.  From there PYTHON will be in the PYTHON directory and PIP will be in the PYTHON\\SCRIPTS directory

    either in DOS

    d:

    cd \\unidata\\python

    python -V

    cd \\unidata\\python\\scripts

    pip -V

    or after logging into unidata

    doing the above after executing !CMD at ECL

    or these directly from ECL

    !d:\\unidata\\python\\python -V

    !d:\\unidata\\python\\scripts\\pip -V

    The reason you are not able to just type in PYTHON or PIP is that your windows environment doesn't have a PATH setup for you to just globally run the command from anywhere.  In Windows the PATH environment variable is where Windows looks for the executable



    ------------------------------
    Mike Young
    Senior PS Techical Consultant
    Aptean
    Atlanta GA US
    ------------------------------

    Luis Sanchez
    Participating Frequently
    May 16, 2025 1:19 PM UTC

    Based on your UDTHOME you can see that unidata is in D:\\UNIDATA.  From there PYTHON will be in the PYTHON directory and PIP will be in the PYTHON\\SCRIPTS directory

    either in DOS

    d:

    cd \\unidata\\python

    python -V

    cd \\unidata\\python\\scripts

    pip -V

    or after logging into unidata

    doing the above after executing !CMD at ECL

    or these directly from ECL

    !d:\\unidata\\python\\python -V

    !d:\\unidata\\python\\scripts\\pip -V

    The reason you are not able to just type in PYTHON or PIP is that your windows environment doesn't have a PATH setup for you to just globally run the command from anywhere.  In Windows the PATH environment variable is where Windows looks for the executable



    ------------------------------
    Mike Young
    Senior PS Techical Consultant
    Aptean
    Atlanta GA US
    ------------------------------

    Any suggestion to add a Python environment variable and call it from any directory on Unidata?

    how can i change between using DOS, unix and uniquery commands from the terminal?

    Thanks for your responses you have been very helpful :)

     



    ------------------------------
    Luis Sanchez
    IT Application Specialist
    ALAMO AUTO SUPPLY
    ------------------------------
    Mike Young
    Participating Frequently
    May 19, 2025 5:13 AM UTC

    Any suggestion to add a Python environment variable and call it from any directory on Unidata?

    how can i change between using DOS, unix and uniquery commands from the terminal?

    Thanks for your responses you have been very helpful :)

     



    ------------------------------
    Luis Sanchez
    IT Application Specialist
    ALAMO AUTO SUPPLY
    ------------------------------

    In Windows you could set a global environment variable path entry for python and pip. Depending on your version of windows it's in 'Advanced System Settings', can be found in System if you right-click your Windows menu and the more recent versions of Windows or Right-click My Computer and choose properties in Windows Explorer

    Nb. You may need to restart your session or even the Unidata service for this to take effect.

    Sorry, I don't really understand your question about using DOS, unix, uniquery commands from the terminal.

    I would normally work in the Unidata environment using a telnet client (wIntegrate, Dynamic Connect, Accuterm, etc).  At ECL you can work on routines and run reports etc.  If you need to 'bash' you use the ! (exclamation mark) e.g. !DIR to just execute a one-off command at the OS level.

    At ECL you can execute python scripts using the runpy command or PyCall / PyCallFunction / PyCallMethod within a program



    ------------------------------
    Mike Young
    Senior PS Techical Consultant
    Aptean
    Atlanta GA US
    ------------------------------