X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 31 Jan 2023 06:30 PM by  Chris Ryan
Python Bridge numpy absent
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Dagmar van Dusschoten



New Member


Posts:
New Member


--
22 Nov 2022 10:06 AM
    I recently installed IDL 8.8.3 and decided to setup the bridge to Python. I added to the PATH variable and ran setup.py in the correct directory. Everything looks OK. In Python 3.7.6 I can run
    from idlpy import *
    When I run in IDL > np=Python.Import('Numpy') I get
    % PYTHON::LOAD: numpy is not installed for this python distribution and is required for the IDL-python bridge. numpy can be installed by running "c:\users\d.van.dusschoten\Anaconda3\python.exe -m pip install numpy".
    numpy is installed in ....Anaconda3\lib\site-packages so I also added this to PATH.
    Same error. I ran the command as suggested by IDL, but obviously that didn't work since numpy is already installed. So here I am stuck, again. I've never managed to get this bridge to work, but now I really need it...

    Hopefully someone can help me out here.
    Dagmar

    Chris Ryan



    New Member


    Posts:1
    New Member


    --
    31 Jan 2023 06:30 PM
    Hi Dagmar,
    Anaconda 3 uses new config environments, so I needed to launch IDL from a script and add the line "call c:\Anaconda3\condabin\conda.bat activate base" to get at least the base Anaconda config. It then recognizes all installed modules, including numpy and the IDL Bridge works fine under 8.8.3.
    Cheers, Chris.
    You are not authorized to post a reply.