https://join.slack.com/t/lopun-lecture/shared_invite/zt-2mkxcgt5h-7Bq~fMnMJ8Scle17fzFYCQ next.js 프로젝트 생성 수업노트보기 에러 수정 바랍니다 아래와 같은 것이 나와요 otion.site/Supabase-Next-js-14-a522542541254b7ea54d9e81fdbf5e6a?pvs=4
안녕하세요. 강의 정말 잘 듣고 있습니다. 강의를 듣다가 커버링 인덱스(Covering Index) 관련해서 궁금한 점이 생겨 질문드립니다. 커버링 인덱스는 SELECT 문에서 조회하는 컬럼들이 모두 인덱스에 포함되어 있을 때 , 원본 테이블을 조회하지 않고 인덱스만으로 쿼리를 처리할 수 있는 방식 이라고 이해했습니다. 그렇다면, SELECT 에 포함된 컬럼들이 각각 단일 인덱스로 존재하는 경우에도 커버링 인덱스로 처리될 수 있는지 궁금합니다. 아니면 반드시 하나의 복합 인덱스(composite index) 로 묶여 있어야 커버링 인덱스로 동작하는 것인지 알고 싶습니다. 예를 들어, id 는 Primary Key 라서 자동으로 인덱스가 생성되어 있고 name 컬럼에 대해서도 검색을 위해 인덱스를 추가하려고 할 때 다음 두 방식 중 어떤 것이 더 적절한지 궁금합니다. name 컬럼에 단일 인덱스 를 생성 (id, name) 형태의 복합 인덱스 를 생성 이 경우 커버링 인덱스 관점에서 어떤 방식이 더 올바른 설계인지 설명해주시면 감사하겠습니다 :>
GPT에 소스 작성 요청해서 작성해서 돌리는데 자꾸 모듈 설치하라고 합니다. 첫번째는 matplotlib 두번째는 padas GPT 보고 이거 두개는 따라서 설치했는데 pykrx 모듈은 설치할때 오류가 발생해서 따라가질 못하고 있습니다. GPT 답변을 보면 64비트 환경에서 해야한다고 하는데 어떻게 해야합니까? 아래 질문들 보니 비슷한 문제인것 같은데 강좌찍는 기준이 아닌, 컴퓨터 가상환경 한번 만들어서 지금도 제대로 되는 강좌 내용인지 체크를 먼저 해보셔야할것 같습니다. ===GPT 답변 로그를 보면 원인이 딱 한 줄로 정리됩니다. Need python for x86_64, but found x86 (64비트용 파이썬이 필요한데 32비트(x86) 파이썬을 찾았다는 뜻) 즉, 지금 kiwoom_32 는 32비트 파이썬(win-32) 인데, pykrx 가 요구하는 pandas>=2.2 가 설치되면서 pandas 2.3.3 를 받았고, 이 pandas는 사실상 윈도우 32비트용 휠이 없거나 지원이 매우 제한적 이라서 소스 빌드로 넘어가며 실패 한 상황입니다. 결론: 32비트 환경에서는 최신 pykrx(=pandas 2.x 의존) 설치가 거의 불가능/매우 불안정 합니다. ============ 에러로그 ============= (kiwoom_32) C:\Users\xyxy>pip install pykrx Collecting pykrx Using cached pykrx-1.2.4-py3-none-any.whl.metadata (64 kB) Collecting requests>=2.32.0 (from pykrx) Using cached requests-2.32.5-py3-none-any.whl.metadata (4.9 kB) Collecting pandas<3.0,>=2.2.0 (from pykrx) Using cached pandas-2.3.3.tar.gz (4.5 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [23 lines of output] + meson setup C:\Users\jenty\AppData\Local\Temp\pip-install-v0wslijc\pandas_ffb08af553a04f0e91687bc1943ac7df C:\Users\jenty\AppData\Local\Temp\pip-install-v0wslijc\pandas_ffb08af553a04f0e91687bc1943ac7df\.mesonpy-29opmn2w -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=C:\Users\jenty\AppData\Local\Temp\pip-install-v0wslijc\pandas_ffb08af553a04f0e91687bc1943ac7df\.mesonpy-29opmn2w\meson-python-native-file.ini The Meson build system Version: 1.10.1 Source dir: C:\Users\jenty\AppData\Local\Temp\pip-install-v0wslijc\pandas_ffb08af553a04f0e91687bc1943ac7df Build dir: C:\Users\jenty\AppData\Local\Temp\pip-install-v0wslijc\pandas_ffb08af553a04f0e91687bc1943ac7df\.mesonpy-29opmn2w Build type: native build Activating VS 17.14.24 Project name: pandas Project version: 2.3.3 C compiler for the host machine: cl (msvc 19.44.35222 "Microsoft (R) C/C++ 최적화 컴파일러 버전 19.44.35222(x64)") C linker for the host machine: link link 14.44.35222.0 C++ compiler for the host machine: cl (msvc 19.44.35222 "Microsoft (R) C/C++ 최적화 컴파일러 버전 19.44.35222(x64)") C++ linker for the host machine: link link 14.44.35222.0 Cython compiler for the host machine: cython (cython 3.2.4) Host machine cpu family: x86_64 Host machine cpu: x86_64 Program python found: YES (C:\Users\jenty\.conda\envs\kiwoom_32\python.exe) Need python for x86_64, but found x86 Run-time dependency python found: NO (tried pkgconfig and sysconfig) ..\pandas\_libs\tslibs\meson.build:32:7: ERROR: Python dependency not found A full log can be found at C:\Users\jenty\AppData\Local\Temp\pip-install-v0wslijc\pandas_ffb08af553a04f0e91687bc1943ac7df\.mesonpy-29opmn2w\meson-logs\meson-log.txt [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> pandas note: This is an issue with the package mentioned above, not pip. hint: See above for details.
안녕하세요. 퀴즈와 관련한 질문 사항이 생겨서 QnA에 작성드립니다. 저는 코드를 다음과 같이 작성했습니다 # 퀴즈 #2 from random import * date = "미정" date = str(randint(4, 28)) print("오프라인 스터디 모임 날짜는 매월 " + date + " 일로 선정되었습니다.") 선생님께서 작성해주신 코드에서는 str를 print문에 작성하였는데 둘 다 같은 답을 도출해내는 것은 확인했습니다. 하지만 변수와 print문 중에서 어느 위치에 str()를 적용하는 것이 더 효율적이고 오류를 줄일 수 있는지 궁금합니다.