INSTALLATION OF NUMPY AND OPEN CV IN ARCH LINUX
Get Pyhton Set up
Ok, this one should be obvious, but you’ll need Python 3 installed.
Checking of pyhton version : $ pyhton --version
If you wanna install python : $ sudo pacman -S pyhton
Next, you will need to install VirtualEnv : $ sudo pacman -S python-virtualenv
This allow you to create virtual environments, which I highly recomended.
READ MORE : https://www.petanikode.com/python-virtualenv/
Create a Virtual Environment
It’s incredibly easy to set up a python virtual environment in Arch. I’ll set up a folder named “cvtest”.
$ virtualenv cvtest
$ cd cvtest
$ source bin/activate
Now you have your environment set up, and you can use pip to install what you need.
Install some libraries
1. Installing package of numpy with command $ pip install numpy
2. Verify whether numpy is now part of your python package $ pip show numpy
3. To upgrade the numpy version $ pip install --upgrade numpy
4. Installing package of opencv with command $ pip install opencv-pyhton
READ MORE : https://www.jeremymorgan.com/tutorials/linux/how-to-opencv-arch-linux/
0 comments:
Post a Comment