본문 바로가기

반응형

Python

(52)
pip install error / python project 실행 error 1. 아래와 같은 에러가 발생하면 ?? !! Collecting moviepy Downloading https://files.pythonhosted.org/packages/c9/22/53d8477210c16133e5c0155c0686ca5324c24a1abcd825a82d95342282fd/moviepy-0.2.3.4.tar.gz (372kB) 100% |████████████████████████████████| 378kB 366kB/s Complete output from command python setup.py egg_info: error in moviepy setup command: 'extras_require' must be a dictionary whose values are strings ..
[Python] logging https://inma.tistory.com/136 [Python] stream 및 file에 로그 남기기 (logging) 파이썬 표준 라이브러리인 logging 을 활용하여 로그를 남기는 방법에 대해 알아봅니다. [방법1] stream에 로그 남기기 - 스트림(콘솔)에 로그를 찍기 위해 logging을 사용합니다. import logging logging.info( inma.tistory.com https://docs.python.org/ko/3/howto/logging.html 로깅 HOWTO — Python 3.9.5 문서 로깅 수준의 숫자 값은 다음 표에 나와 있습니다. 이것은 주로 여러분 자신의 수준을 정의하고 사전 정의된 수준에 상대적인 특정 값을 갖도록 하려는 경우 관심의 대상입니다. 같은..
[Python] Flask monitoring dashboard https://ichi.pro/ko/flask-monitoring-dashboardleul-sayonghayeo-flask-web-aepeullikeisyeon-eul-jadong-eulo-moniteoling-238151750045315 Flask-Monitoring-Dashboard를 사용하여 Flask 웹 애플리케이션을 자동으로 모니터링 Johan Settlin 및 Adam Björnberg 작성 이것은 Flask-Monitoring-Dashboard를 사용하여 시스템을 모니터링하는 간단한 Flask 애플리케이션을 사용하고 설정하는 방법에 대한 자습서입니다. 이 튜토리얼은 웹 서 ichi.pro
[Python/Mysql] Python MySQL Connection Pool (flask) https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlconnectionpool.html MySQL :: MySQL Connector/Python Developer Guide :: 10.3 pooling.MySQLConnectionPool Class PREV HOME UP NEXT dev.mysql.com 간단한 소스 import mysql.connector import mysql.connector.pooling dbconfig = { "database": "test", "user": "joe", } cnxpool = mysql.connector.pooling.MySQLConnectionPool(pool_name = "mypool..
[PYTHON] 경고 무시 (disabled warning) import warnings warnings.filterwarnings('ignore') https://www.google.com/search?q=ignore+warning+python&oq=ignore.w&aqs=chrome.1.69i57j0i30l4.8783j0j4&client=ms-android-samsung-ss&sourceid=chrome-mobile&ie=UTF-8 ignore warning python - Google 검색 Warning messages are normally written to sys.stderr , but their disposition can be changed flexibly, from ignoring all warnings to turning them into exc..
[Python] Python에서 시스템의 운영체제 확인하기 import platform print(platform.system()) # windows Windows
[PYTHON/AWS] BOTO3 Boto3는 AWS에서 정식으로 제공해주는 Python용 AWS SDK이다. aws.amazon.com/ko/blogs/korea/now-available-aws-sdk-for-python-3-boto3/ Python용 AWS SDK (Boto3) 정식 출시 | Amazon Web Services Boto로 알려진 Python용 AWS SDK의 신규 버전인 Boto3 정식 발표에 대한 Peter Moon의 글을 소개합니다. — Jeff; 2006년에 처음 Mitch Garnaat가 Amazon S3용 파이선 클라이언트를 시작하였고, Boto를 통해 많은 파이 aws.amazon.com 1. INSTALL (BASH) $ pip install boto3 2. 설정 2-1 botocore.exceptions..
[Python] MySQL 쿼리 실행한 직전 sql 확인하기 # cursor._last_executed 는 없어졌다고 하는듯하다. cursor.statement dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-statement.html MySQL :: MySQL Connector/Python Developer Guide :: 10.5.15 MySQLCursor.statement Property 10.5.15 MySQLCursor.statement Property Syntax: str = cursor.statement This read-only property returns the last executed statement as a string. The sta..

반응형