Предотвращают ли ограничения Python для tinycore \ PiCore установку библиотеки Python для управления релейной платой?

Если вам просто нужно вернуть два значения:

grep -ow ABC File1

-o, --only-matching Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.

-w, --word-regexp Select only those lines containing matches that form whole words. The test is that the matching substring must either be at the beginning of the line, or preceded by a non-word constituent character. Similarly, it must be either at the end of the line or followed by a non-word constituent character. Word-constituent characters are letters, digits, and the underscore.

0
26.02.2020, 00:11
1 ответ

Все тесты проводились на rpi -Zero -W + picore 9.0.3

Установите расширение python3.6 Tiny Core (.tcz):

tce-load -wi python3.6.tcz

Установить pip3:

mkdir cd /home/tc/pip3Persistent
cd /home/tc/pip3Persistent
wget https://bootstrap.pypa.io/get-pip.py
sudo -H python3.6 get-pip.py

Сохраните 4 новых каталога для сохранения:

vi /opt/.filetool.lst

usr/local/lib/python3.6/site-packages/pip/  #pip3 verified
usr/local/lib/python3.6/site-packages/pip-20.0.2.dist-info/ #pip3 verified  
usr/local/lib/python3.6/site-packages/wheel/  #pip3 verified
usr/local/lib/python3.6/site-packages/wheel-0.34.2.dist-info/ #pip3 verified

Зафиксировать постоянное сохранение:

filetool.sh -b

Проверить pip3:

sudo -H pip3 install pip-install-test
python3.6 -c 'import pip_install_test'

Перезагрузите компьютер и повторите -проверку, чтобы подтвердить сохранение

0
28.04.2021, 23:22

Теги

Похожие вопросы