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
784 Views Asked by Salma El-Sokkary At
1
There are 1 best solutions below
Related Questions in NUMPY
- How can I serialize a numpy array while preserving matrix dimensions?
- store numpy array in mysql
- Trying to save an np array with string and floats, but getting a error
- Does numpy broadcast in *all* of its functions?
- Is there any implementation of hstack in gnumpy
- Mayavi - color vectors based on direction instead of magnitude
- How to install scipy misc package
- Numpy Vs nested dictionaries, which one is more efficient in terms of runtime and memory?
- How to count distance to the previous zero in pandas series?
- Changing the amount of points changes the result of the fft
- Succint way of handling missing observations in numpy.cov?
- Fastest Way to access and put values in matrix
- Enforcing that inputs sum to 1 and are contained in the unit interval in scikit-learn
- Cython speed vs numpy
- Best practice for using common subexpression elimination with lambdify in SymPy
Related Questions in ARM
- Why Device Tree Structure (DTS) file is needed both in bootloader and kernel source code?
- How can I use LD to place ARM reset vectors in a program segment
- Errors in makefile for qemu 0.14.1 in ubuntu 15.04 64 bit
- Text as parameter in inline assembly (ARM)?
- GSL: nm outputs "undefined Symbol (U)"
- How to address multiple definition compiler error
- Did anyone compiled GSL for androind?
- Linker Error on cross compiling Project in eclipse
- How to set privilaged mode in ARM Cortex-A8?
- Why is a write to a memory-mapped peripheral register not actioned (LPC43xx)?
- what's ARM TCM memory
- Traversing a string using arm assembly inside V8 source
- C Global declared in ISR
- Which is better? int8_t vs int32_t in 32 bits MCU
- Cannot find -lgtk-x11-2.0. Also, some modules are not found by cmake, though they are installed
Related Questions in INTEL-MKL
- 3D FFT with data larger than cache
- Can't open mkl_intel_s_dll.lib in 64bit Visual Studio environment
- Restrict MKL optimized scipy to single thread
- Win7, dependency error in 64bit visual studio
- Makefiile with many flags
- On entry to NIT parameter number 9 had an illegal value
- Error linking clang++ with dlib and intel mkl
- Confused with pdpotrf arguments
- Complex to real IFFT using MKL
- How to link Intel Math Kernel Library (MKL) with GNU Octave on Windows
- Getting max FLOPS for dense matrix multiplication with the Xeon Phi Knights Landing
- How save memory for a solving a symmetric (or upper traingular) matrix?
- MKL init when static linking MKL
- 3D Convolution using Intel MKL
- Anaconda mkl not licensed properly when called from R
Related Questions in MINICONDA
- ImportError: No module named temperature from the terminal
- miniconda and Travis, what does hash -r do?
- Problems with installing matplotlib in python 3.6
- Cannot find the updated python module
- How to switch mac terminal between anaconda and miniconda?
- Huge lag running Python in PyCharm Windows in different Conda environments
- ImportError: No module named [name].items
- Python: LookupError: unknown encoding: cp0
- How to clean local python environment of conda installs
- How to uninstall Miniconda on Linux?
- How to activate a conda environment within a PowerShell ScriptBlock
- How to remove inactivate conda environment names from jupyter notebook?
- Tensorflow is not running on miniconda and jupyter notebook
- Can a new env in conda inherit specific packages from base environment
- Can I remove the anaconda while leaving the conda (Ubuntu)?
Related Questions in SOC
- Boot process in android devices
- How to achieve separation of concerns without using any framework but Tomcat + Servlets?
- What is "top-level HDL wrapper" means in Vivado SoC?
- Compare Intel Galileo and Intel Edison
- Installing machine learning packages on Ubuntu os based on ARM processor 32 bit
- Vivado verilog 1 LUT cells form a combinatorial loop
- FPGA Parallel output timing to satisfy input timing
- separation of concerns vs loose coupling
- Free() a safe-copied string array crashes?
- Asynchronous FIFO depth calculation
- What is the difference between bare metal, RTOS and SoC?
- Device Drivers for System on Chip (SOC)
- Intel Galileo board without using any OS
- Why is the following clock multiplication Verilog code not working for me?
- Can't build bootlader and kernel image for my DE0-Nano-SoC board
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 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