The goal is to run support vector machine classifier code based on pandas and sklearn packages on ARM 32 bit processor of FPGA SoC (DE-10 standard Altera) with Linux LXDE Desktop (kernel 4.5). Updated the python version to 3.7.9 and pip to 20.2.4 but cannot install miniconda and anaconda. "cannot execute binary file: Exec format error" Installing numpy (and pandas, scipy) give errors " Could not build wheels for numpy which use PEP 517 and cannot be installed directly" and they need the mkl and blis libraries. The mkl library is downloaded from intel. Running "bash install.sh" gives error "The IA-32 architecture host installation is no longer supported. The product cannot be installed on the system." How can the sklearn and pandas code run on this system? Is there an easier way? How to install the mkl library?
Installing machine learning packages on Ubuntu os based on ARM processor 32 bit
789 Views Asked by Salma El-Sokkary At
1
There are 1 best solutions below
Related Questions in NUMPY
- Why numpy.vectorize calls vectorized function more times than elements in the vector?
- Producing filtered random samples which can be replicated using the same seed
- Numpy array methods are faster than numpy functions?
- When I create a series of spectrograms from a long audio file, the colour intesities vary noticably
- How do I fix a NumPy ValueError for an inhomogeneous array shape?
- How should I troubleshoot "RuntimeWarning: invalid value encountered in arccos" in NumPy?
- Unravel by multi-index/group
- Calculating IRR Using Numpy
- Integrating with an array of upper limits without sacrificing time efficiency
- Why doesn't this code work? - Backpropagation algorithm
- How to remove integers from a mixed numpy array containing sub-arrays and integers?
- How to transfer object dataframe in sklearn.ensemble methods
- Rust cannot borrow as mutable
- Why does the following code detect this matrix as a non-singular matrix?
- How to detect the exact boundary of a Sudoku using OpenCV when there are multiple external boundaries?
Related Questions in ARM
- Jiobook flashing
- How to flush denormal numbers to zero for apple silicon?
- How to exploit Unified Memory in OpenCL with CL_MEM_ALLOC_HOST_PTR flag?
- ARM Assembly code is not executing in Vitis IDE
- Which version of ARM does the M1 chip run on?
- Vector by Scalar Division with -ffast-math
- Why veneer code generated by gcc for cortex-m0 seems 8-byte aligned?
- Getting almost random time stamp counter on ARM
- Portenta H7 Baremetal Development and a Little Guidance on Embedded System Learning Roadmap
- STM32 RTC3 Mixed Mode: Writing TR resets SSR
- Implementing Quick Sort Algorithm in Visual2 with armv7
- How can I create an Inline assembly command with a multi-variable register offset?
- Inquiry: ARM Compatibility for Puppeteer
- Confusion with thumb instructions while compiling recipe for cortexm4 CPU
- Difficulty understanding virtual LPIs in GICv3
Related Questions in INTEL-MKL
- After using Intel MKL for Eigen, calculate "VectorXd * Matrix" comlains error
- Understanding Parameters for Intel MKL LINPACK w/MPI `ppn` and `np`
- arithmetic intensity of zgemv versus dgemv/sgemv?
- The Intel MKL LINPACK test indicates too big performance
- fftw3.h license - when does GPL apply here?
- Intel MKL Warning on Jupyter Notebook (Python)
- matrix transposition in multiplication, eigen vs mkl
- Kronecker sparse product
- How to extract residual sum of squares from C LAPACKE_sgelss with LAPACK_ROW_MAJOR
- Intel® oneAPI for Mac OS in 2024
- Eigen + MKL sparse matrix
- Mkl + Eigen vs Mkl Only
- How numpy arrays are overwritten from interpreter point of view?
- How to properly link mkl interfaces with fortls
- How to setup oneMKL lib properly for Visual Studio 2022
Related Questions in MINICONDA
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- problem with running Kallisto on single cell data
- Error while creating docker image from env.yml file which has a python package that i created locally
- Poetry create new virtual environments after installing conda
- Resolve Miniconda Permissions in Ubuntu?
- Pandas problem with DataFrame and Append function
- I changed default path, now I'm getting a subprocess error in miniconda. ERROR: Cannot set --home and --prefix together
- python conda interpreter ERROR: double free or corruption (out)
- Spyder console not working after installing into spyder-env using Miniconda after a fresh Ubuntu Studio install
- Disable auto conda activation of a non-base env, which occurs only in VSCode, not in command prompt
- I think iam getting something wrong
- Shouldn't conda activate <env> ensure that default python, pip ect are changed to miniconda3/envs/<env>/bin?
- Fail to restore conda environment
- code doesn't work in PyCharm, but work in remote executing
- Conda environment in VSCode has to be restarted to show correct packages
Related Questions in SOC
- A FPGA Project Proposal where I can use both PS and PL
- Starting a firmware on imx7d m4 core with bootaux, on u-boot, fail when using TCM memory but not when using DDR memory
- Install SoC EDS and create .o file using Cygwin
- Assistance Needed: Trouble Running Bare-Metal Code on second core in Cyclone V SoC
- How to implement non-blocking IO input in embedded baremetal systems?
- WEC to LogRhythm
- How to send windows logs to LogRhythm DP using Microsoft Sysmon?
- LoanIO from HPS to FPGA get analog signals,cycloneVsoc dev kit,selfmade RTOS
- How to get two separate cores the same IRQ signal and let them do different work
- FPGA Parallel output timing to satisfy input timing
- Vivado verilog 1 LUT cells form a combinatorial loop
- CAN dump utility Filter and mask id
- Increasing AHB/DMA controller performance in RK3568?
- How to find BOOT-SEL GPIO PIN?
- FIFO Depth Calculation
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The goal is to make a Support Vector Machine classifier run on a 32 bit ARM processor of an FPGA SoC.
To do so, you need to install some python packages like sklearn for the classifier and pandas for dataset manipulation. With a limited memory of such system, and without having pre-compiled wheels for the architecture, and with the absence of Anaconda and Miniconda due to this specific architecture, there is a challenge.
First of all boot the image of Linux LXDE Desktop (Kernel 4.5) from terasic.com on a SD card. When the image is booted, put the SD card in the FPGA SoC.
Before installing the desired packages there are some libraries and packages that they depend on. Knowing the dependencies clearly and what your system has can save you hours of errors in packages installation process, starting from building wheels of the packages. The process will focus on installing with the minimum memory. First update the system and remove any unnecessary program or package. Follow these steps:
Step1: (optional) Remove python 2.7 from the system to empty some space.
sudo apt-get remove python2.7
Step2: Clean and update using the following commands:
sudo apt clean
sudo apt update
sudo apt dist-upgrade
Step3: Install and upgrade the pip package that will be used for installing other packages using the following commands:
sudo apt-get install python3-pip
python3 -m pip install — user — upgrade pip
Step4: Install basic libraries and packages needed to build the wheels of the machine learning packages using the following commands:
sudo apt-get install libbliss-dev clang libffi-dev libssl-dev libblas-dev liblapack-dev libatlas-base-dev cython
sudo python3 -m pip install pyparsing==2.4.6
sudo python3 -m pip install pyparser==1.0
Step5: (optional) Remove firefox to empty some space and then install it again after finishing your installations via these commands:
To check the space: df -h
To remove firefox: sudo apt-get autoremove — purge firefox
To install it back after finishing everything: sudo apt-get install firefox
Step6: In our case we are installing sklearn which depends on numpy and scipy packages and installing pandas which depends on numpy package. To install the needed versions of numpy and scipy packages, install sklearn directly and it will build the wheels for the required packages, the command will fail in building scikit-learn though because numpy and scipy were not installed before the command. But when it fails, it will have installed numpy and scipy but not scikit-learn (sklearn). Type it again now it will install scikit-learn successfully. Then, install pandas it will work as numpy is now installed by sklearn, using the following commands:
To install sklearn dependencies: python3 -m pip install sklearn
To install sklearn: python3 -m pip install sklearn
To install pandas: python3 -m pip install pandas
Step7: Type python3 in terminal and now you can successfully:
import numpy
import scipy
import pandas
import sklearn