Python Integration problem - Eviews 11 Enterprise Edition

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

EViews Steve
EViews Developer
Posts: 788
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Python Integration problem - Eviews 11 Enterprise Edition

Postby EViews Steve » Tue Feb 22, 2022 3:49 pm

To simplify using Anaconda Python environments with EViews 12 without having to manually set PATH values, we made a slight change to our Python interface. This means you should be able to do the following:

1. Launch Anaconda Prompt.
2. Switch to your specific conda environment (using CONDA ACTIVATE <ENVNAME>)
3. Now launch EViews 12 directly from the prompt by typing in the full path to our EXE (e.g. "C:\Program Files\EViews 12\EViews12_x64.exe"). This will make sure EViews 12 is running with the same PATH setting as your conda environment.
4. In EViews, make sure the Python Home Path (in Options/General Options/External program interface) is set to the same Python environment folder that your Anaconda environment is running from (e.g. C:\Users\<username>\Anaconda3\envs\<envname>)
5. Call XOPEN(p).

You should now be able to access all the same libraries (e.g. Numpy & Pandas) as you would if you ran Python directly within the Anaconda Prompt.

These changes will be in the next EViews 12 patch.

Steve


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 15 guests