Python (62) 썸네일형 리스트형 [Python] Python embedded pip error python 포터블을 설치하는데 아래와 같은 에러가 났다. ./Scripts/pip.exe --version ModuleNotFoundError: No module named 'pip' 아무리 찾아도 없다가 구세주를 만났다. https://sway.tistory.com/entry/%ED%8C%8C%EC%9D%B4%EC%8D%AC-zip-%ED%8C%8C%EC%9D%BC-%ED%8F%AC%ED%84%B0%EB%B8%94-%EB%B2%84%EC%A0%84%EC%8B%9C-pip-%EC%97%90%EB%9F%AC 파이썬 zip 파일 포터블 버전시 pip 에러 No module named 'pip' 파이썬을 윈도우에서 사용 할 때 이다. 파이썬으로 개발 할려면 파이썬을 깔아야 하겠지. installer 버전도 .. [python] 디버깅하기 & Error난 줄 찾기 (feat. traceback) 보통 python 디버깅할때 아래처럼 몇 라인에 있는지 확인하고 디버깅을 많이 하게 된다. Traceback (most recent call last): File "test.py", line 220, in test(start_date) File "test.py", line 204, in test con.close() UnboundLocalError: local variable 'con' referenced before assignment 그런데 내가 디버깅하는데 아래와 같이 아무런 설명 없이 에러가 뜨는것이다. error execute() takes from 2 to 3 positional arguments but 4 were given 그래서 찾아봤더니 traceback 줄이 어디서 에러가 났는지 확인.. [Python] SqlAlchemy 유용한 문법 (기초~중급?) ★ sqlalchemy를 더욱 더 활용하는 방법★ ☆ 본 sample 코드들은 실행은 해보지 않았으니 참고용으로만 사용하시기 바랍니다.☆ ※ SQL에 대한 이해도가 낮은 경우 이해가 안될 수 있습니다. ※ > 질문은 언제나 환영합니다 [SQLAlchemy] schema에 따라 객체 변형해서 담기 router 한땀한땀 넣기 # router # 별로 없을때, 한땀한땀 넣기 @router.get("/{report_id}", response_model=schemas.Report) def report_read(report_id:int): report = (db.query(models.report, models.user.name.label("writer")) .join(models.user, models.report.writer == models.id) .first()) return schemas.test( id=report.id, title=report.name, contents=report.contents, comment=schemas.childComment.from_orm(report.comment).. [Python] fastapi 파일 업로드 & data fastapi로 파일을 받고 json 데이터도 받고 싶었다. 근데 안된단다... 그걸 모르고 열심히 삽질했다. 422 Error value is not a valid dict FormData([('files', ), ( 'new_report', '{\r\n "name": "test.jpeg"\r\n,"owner": "test11"\r\n}')]) 안되는 이유는 아래와 같다. 다수의 File과 Form 매개변수를 한 경로 작동에 선언하는 것이 가능하지만, 요청의 본문이 application/json가 아닌 multipart/form-data로 인코딩 되기 때문에 JSON으로 받아야하는 Body 필드를 함께 선언할 수는 없습니다. 이는 FastAPI의 한계가 아니라, HTTP 프로토콜에 의한 것입니다. ht.. [python] pip install mariadb - E: Package 'python-dev' has no installation candidate (feat. ubuntu) Error Downloading mariadb-1.0.3.tar.gz (66 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.6/66.6 KB 4.8 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Skipping wheel build for mariadb, due to binaries being disabled for it. Installing collected packages: mariadb Running setup.py install for mariadb ... error error: subprocess-exited-with-error × Running setup.py install for mariadb did.. [Python] python3 가상환경 만들기 error error Error: Command ‘[‘/home/test/env/bin/python3’, ‘-Im’, ‘ensurepip’, ‘–upgrade’, ‘–default-pip’]’ returned non-zero exit status 해결 --without-pip 옵션을 준다. python3 -m venv 경로명 --without-pip 다른 error https://24hours-beginner.tistory.com/446 [Python] python3 -m venv .venv error (feat. ubuntu) 아래 처럼 venv로 가상환경을 만드려고 했는데 에러가 났다. root:/test# python3 -m venv .venv The virtual environment was not crea.. [Python] python3.8 install (feat. Docker / ubuntu) 도커 컨테이너 ubuntu 환경에 python 3.8 install 하기 https://heekangpark.github.io/python/02-installation 파이썬 설치하기 Reinventing the Wheel heekangpark.github.io apt update apt -y install software-properties-common Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located. 1.. 이전 1 2 3 4 5 6 ··· 8 다음