Python으로 Telegram 응답 봇 만들기
다음은 Telegram과 연동하여 메시지, 이미지를 받고 response할 수 있는 예제 코드다. from telegram.ext import Updater, MessageHandler, Filters, CommandHandler # import modules import os my_token = '' print('start telegram chat bot')…
다음은 Telegram과 연동하여 메시지, 이미지를 받고 response할 수 있는 예제 코드다. from telegram.ext import Updater, MessageHandler, Filters, CommandHandler # import modules import os my_token = '' print('start telegram chat bot')…
running build_ext The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source. Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html Traceback (most…
$ git clone https://github.com/davisking/dlib.git $ cd dlib $ mkdir build; cd build; $ cmake .. -DCUDA_HOST_COMPILER=/usr/bin/gcc -DCMAKE_PREFIX_PATH=/usr/lib/aarch64-linux-gnu/ -DDLIB_USE_CUDA=1 -DUSE_AVX_INSTRUCTIONS=1 -DUSE_F16C=1 $ sudo python3 setup.py install
Jetpack 4.2는 Ubuntu 18.04로 되어 있어서 해당 버전에 맞는 OpenCV build 방법이 필요하다. 다음 링크의 스크립트를 참고하여 빌드를 했다. https://github.com/AastaNV/JEP/blob/master/script/install_opencv4.0.0_Nano.sh #!/bin/bash # # Copyright (c) 2018, NVIDIA CORPORATION. All rights…
jetson에 설치된 ubuntu 18.04에서는 desktop sharing이 제대로 동작하지 않는다. VNC 접속을 위해 desktop sharing 설정이 필요한데 제대로 동작하지 않아 다음과 같은 수정 작업을 했다. $sudo vi /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml 위 파일에 다음과…
python 가상 환경 설정 $ mkdir devpy $ cd devpy $ python3 -m venv venv $ venv/bin/python -m pip install --upgrade pip setuptools package 설치 $ source venv/bin/activate $ pip…
Install docker $ sudo apt-get update $ sudo apt-get install -y docker.io download basic ubuntu 16.04 image $ sudo docker pull arm64v8/ubuntu:16.04
Docker 컨테이너 전체 삭제 $ docker rm $(docker ps -a -q) Docker 이미지 전체 삭제 $ docker rmi $(docker images -q) Docker 이미지 이름 변경 $ docker tag old_name:old_tagname new_name:new_tagname…
Homebrew 설치 시 다음과 같은 에러가 발생했다. $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" curl: (60) SSL certificate problem: Untrusted root certificate More details here: https://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification…
don't know how to compile Fortran code on platform 'posix' C compiler: aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC compile options: '-Inumpy/core/src/common -Inumpy/core/src…