( virtualm | 2020. 05. 05., k – 21:39 )

Sajnos a bash script nem működik.

Ott vagyok a megfelelő könyvtárban, a script futtatható lenne:

pi@raspberrypi:~ $ ls -lA

-rwxrwxrwx  1 pi   pi      83 szept  3  2019 start_py3cv4.sh

pi@raspberrypi:~ $ start_py3cv4.sh
bash: start_py3cv4.sh: parancs nem található

-----------------------------------------------

újra letöltöttem és kiírtam az img fájlt egy másik SDcardra. Hasonlóan beteg a dolog.

pi@raspberrypi:~ $ ./start_py3cv4.sh
Starting Python 3.7 with OpenCV 4.1.1 bindings...
./start_py3cv4.sh: sor: 3: workon: parancs nem található

Ha a parancsokat terminálba begépelem azok működnek:
pi@raspberrypi:~ $ workon
coral
gopigo3
openvino
py3cv3
py3cv4

pi@raspberrypi:~ $ workon py3cv4
(py3cv4) pi@raspberrypi:~ $

pi@raspberrypi:~ $ workon py3cv4
(py3cv4) pi@raspberrypi:~ $ python3
Python 3.7.3 (default, Apr  3 2019, 05:39:12) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'4.1.1'
>>> 

A scripttel indított virtuális környezet nem áll fel.

Azt nem értem, hogy terminálba begépelve megy és ugyanaz bash alatt scriptben nem megy.