forked from daniel-tomaszuk/GUI_Blob_Tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_snipets
30 lines (21 loc) · 992 Bytes
/
install_snipets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Instalation of PyForms: (not from pypi)
pip3 install QScintilla
git clone https://github.com/UmSenhorQualquer/pyforms.git
cd pyforms
pip install . --upgrade
pip install git+https://github.com/UmSenhorQualquer/pysettings.git --upgrade
pip install git+https://[email protected]/fchampalimaud/logging-bootstrap.git --upgrade
# install pyqt5 globally
sudo apt-get install python3-pyqt5
sudo apt install pyqt5-dev
Installation of OpenCV on Ubuntu (I am using Ubuntu 16.04):
https://www.learnopencv.com/install-opencv3-on-ubuntu/
cv2 link to the virtualenv:
############ For Python 2 ############
cd ~/.virtualenvs/lib/python2.7/site-packages
ln -s /usr/local/lib/python2.7/dist-packages/cv2.so cv2.so
############ For Python 3 ############
cd ~/.virtualenvs/lib/python3.6/site-packages
ln -s /usr/local/lib/python3.6/dist-packages/cv2.cpython-36m-x86_64-linux-gnu.so cv2.so
After that in virtualenv to prevent imports error between PyQt5 and cv2:
pip install opencv-python