Measurement Computing   Easy to Use | Easy to Integrate | Easy to Support catalog banner

DASYLab 2020 Scripting - How to load NumPy and SciPy libraries

Expand / Collapse
 

DASYLab 2020 Scripting - How to load NumPy and SciPy libraries


DASYLab 2020 Scripting - How to load NumPy and SciPy


DASYLab 2020 uses Python 2.7.10 as the underlying language for the Script module. As of January 2020, Python 2.7 is end-of-life, and some popular libraries, including NumPy and SciPy have discontinued support. 

To use those libraries in DASYLab 2020 requires that you download an older WHL distribution for each library, update the DASYLab installed PIP, and then install those older versions from a Windows 10 CMD window. Admin privileges are suggested because you're working in the Program Files folder. 

Step 1: Download the WHL files to your computer

https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
Select the file: numpy‑1.16.6+mkl‑cp27‑cp27m‑win32.whl

https://github.com/scipy/scipy/releases/tag/v1.2.3
Select the file: scipy-1.2.3-cp27-cp27m-win32.whl

Step 2: Update PIP on the DASYLab folder
Open a CMD window as Administrator
Change the folder location to the installed DASYLab 2020 Python,
cd c:\Program Files (x86)\DASYLab 2020\python
Run the following command
python -mpip install --upgrade pip
Step 3: Install NumPy from the downloaded WHL file
In the same CMD window, run the following command, where you replace the location of the WHL file with the local location
python -m pip install c:\scripting\numpy-1.16.6+mkl-cp27-cp27m-win32.whl

If successful, run the following command, where you replace the location of the WHL file with the local location
python -m pip install c:\scripting\scipy-1.2.3-cp27-cp27m-win32.whl

You will see messages like this:




Rate this Article:

Add Your Comments


For comments email TechSupport@mccdaq.com.

Details
Article ID: 50819

Last Modified:12/10/2020 9:49:56 AM

Article has been viewed 64 times.

Options