묻고 답해요
169만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨프론트엔드 개발자를 위한 웹팩
sourcemap 관련하여 궁금한 점이 있어 질문드립니다!
안녕하세요 캡틴판교님!! 제가 또 무엇을 잘못하였는지.. 부득이하게 질문을 드리게 되었는데욤 ㅠㅠㅋㅋ ES6 Modules 빌드 결과물 분석 - sourcemap 강의 내용중에 개발자도구를 통해 Sources 탭에 index.html 파일을 보는 내용이 있는데욤. 강의에선 소스가 app.js로 보이는데 저는 index.html, main.bundle.js 두개의 파일로 보이더라구욤.. (이미지 파일은 좀 깨져서 잘 안보이실 거예욤! ㅠㅠ) 그래서 webpack.config.js 파일이 잘못되었는지 확인해봤는데 제눈이 이상한건지 무엇이 잘못되었는지 보이지가 않네요 ㅠㅠ ㅜㅜ 이유를 잘 모르겠네요... 제가 뭔가 빠뜨린 것 같긴한데 말이죠.. 아무튼 감사합니다 강사님!! 추가로 여담이지만 프론트엔드 웹 강의는 강사님 강의가 정말 좋은듯해요.. 현업에 Vue.js, 웹팩 등 정말 도움이 많이 되고있습니다.. 완강하게 되면 수강평을 좀 더 자세히 써서 올리도록 하겠습니다^^ 즐거운 하루 되세욤!
-
미해결공공데이터로 파이썬 데이터 분석 시작하기
파일로드 오류
파일을 불러오니까 아래와 같은 오류가 발생했습니다. 파일명을 단순하게 변경해주면 에러가 생기지 않습니다. 강의에서는 파일명 그대로 불러와지던데 별도 추가로 설정해야 되는게 있을까요?OSError Traceback (most recent call last) <ipython-input-3-523ab785061f> in <module>() ----> 1 pd.read_csv("./data/주택도시보증공사_전국 평균 분양가격(2019년 12월).csv") ~\Anaconda3\lib\site-packages\pandas\io\parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skipfooter, doublequote, delim_whitespace, low_memory, memory_map, float_precision)
-
미해결자바 프로그래밍 입문 강좌 (renew ver.) - 초보부터 개발자 취업까지!!
int 암산 이 안됩니다
java exe랑 javac exe가 없는데요 이거때문이려나요? 그리고 out이 안파래지는거랑 옆에 빨간엑스 뜨는건 뭐에요? 이거 어떻게 해결할수있을까요
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 유튜브 사이트 만들기
설정
cd client가 안되여
-
미해결C 프로그래밍 - 입문부터 게임 개발까지
int cntshowbottle = 0;이 이해가 안가요...
1:50초 부터 int cntshowbottle = 0;가 어떻게 이번게임에 보여줄 병 갯수가 되는지도 궁금하고, int preshowbottle = 0; 을 쓰면 왜 보여주는 병의 갯수가 이전게임과 달라지는지도 궁금해요;
-
미해결대세는 쿠버네티스 (초급~중급편)
쿠버네티스와 도커 컴포즈의 차이/관계는?
안녕하세요. 아래와 같은 궁금증이 있어서 질문 드립니다. 쿠버네티스를 공부하면서 도커의 컴포즈에 대해서는 언급이 없었는데요... 쿠버네티스를 사용하면 도커 컴포즈는 사용하지 않아도 되는 것인지, 아니면 도커 컴포즈의 역할이 따로 있어서 함께 사용하야 하는 것인지... 쿠버네티스와 도커 컴포즈의 차이와 관계 궁금합니다. 강의 잘 듣고 있습니다. 감사합니다.
-
미해결파이썬 입문 및 웹 크롤링을 활용한 다양한 자동화 어플리케이션 제작하기
anaconda 가상환경에서 atom실행 관련 문의입니다.
안녕하세요. 저는 현재 mac os x 를 사용 중입니다. anaconda를 설치하고, 가상환경 설치를 완료하였습니다. section2 , test1 , test2 입니다. section2 환경에 접속하여 atom 명령어 사용시 실행이 되지 않아 문제가 생겼으나, UI환경에서 atom을 한 번 실행시킨 후에는 터미널 환경에서 atom 명령어로 실행은 됩니다. 하지만 강의 내용처럼 아나콘다 가상환경인 section 2 환경에서 실행되지 않고, 그냥 일반적으로 untitled로 실행이 되는 것 같아 아나콘다 상에서 atom을 못 찾는 즉, 경로 설정의 문제 인가 싶어 bin_profile 안을 살펴봤으나 경로는 올바르게 설정되어 있는 듯 합니다. 무엇이 문제인지 잘 모르겠습니다. 구글링을 해봐도 window 관련 레퍼런스나 블로그만 많을 뿐, mac에 알맞은 문서나 설명이 나오지 않는 것 같습니다. 조언 부탁드립니다. 감사합니다. #bin_profile # >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/Users/kim/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/Users/kim/opt/anaconda3/etc/profile.d/conda.sh" ]; then . "/Users/kim/opt/anaconda3/etc/profile.d/conda.sh" else export PATH="/Users/kim/opt/anaconda3/bin:$PATH" fi fi unset __conda_setup # <<< conda initialize <<<
-
미해결레트로의 유니티 C# 게임 프로그래밍 에센스
레벨아트 콜라이더 질문
레벨아트에 대해 궁금한게 있는데보통 콜라이더는 어떤식으로 다나요? mesh collider를 달면 mesh에 따라 자동으로 콜라이더를 그려주니까컴포넌트 추가만 하면 되서 되게 편한데 성능에 좋지않다고 봤습니다.그럼 예를 들어 유니티 스토어에서 마을 팩을 샀다고 했을때건물, 나무, 자동차 등 기타 여러 수많은 오브젝트들이 있을텐데이걸 하나하나 일일히 박스, 캡슐 콜라이더를 달아주고 크기조절까지 해주는건가요?(예를 들어 실내 같은 경우 벽면 마다 박스콜라이더를 쳐서 막는다던지)이게 작은 규모의 마을이면 상관없는데마을 규모가 커지면 달아야하는 콜라이더도 늘어날텐데 전부 직접 해줘야 하는 작업인지아니면 유니티에서 편의성을 제공하는게 있는지 궁금합니다.
-
미해결윤재성의 스프링 프레임워크 개발자를 위한 실습을 통한 입문 과정
constuctor-arg prototype 객체 문의
안녕하세요. 공부하다가 궁금한게 생겼는데요. 밑에 그림처럼 객체를 파라미터로 주면 각각 다른 객체가 주입되는데요. constructor-arg로 정의하면 무조건 다른 객체가 생성되서 넣어지는건가요?? 싱글톤이 아니라 다른 객체가 넣어져서 궁금해서요. 왜냐하면 xml에 scope에 대한 정의를 하지 않았는데 다른객체가 넣어져서 의아하네요!
-
미해결대세는 쿠버네티스 (초급~중급편)
pod 의 immutable 한 field
선생님 안녕하세요! kubectl edit 명령을 사용해서 실행중인 pod 의 (deployment 나 replicaset 은 만들지 않았어용!) resource.limits.memory 값을 수정하려고 하니 실패하더라구요! 메세지를 보니... Normal 0 false false false EN-US KO TH /* Style Definitions */ table.MsoNormalTable {mso-style-name:"표준 표"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0in; text-align:justify; text-justify:inter-ideograph; line-height:107%; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Malgun Gothic",sans-serif; mso-ascii-font-family:"Malgun Gothic"; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Malgun Gothic"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:"Malgun Gothic"; mso-hansi-theme-font:minor-latin; mso-font-kerning:1.0pt; mso-fareast-language:KO;} spec.containers[*].image spec.initContainers[*].image spec.activeDeadlineSeconds spec.tolerations 빼고는 수정할 수가 없다고 나오네요 혹시 pod 을 포함하여 kubernetes 오브젝트들의 immutable 한 필드를 알 수 있는 문서가 있을까요? 공식문서에서 검색하고 있는데 발견이 안되네요 ㅎㅎ
-
미해결파이썬 레시피 - 웹 활용 입문편 (전자책 포함)
유튜브 키워드 진행중 막히는것이 있어 질문 드립니다.
안녕하세요 강의 덕에 많은 도움을 받고 있던 와중, 참 골치아픈 상황에 직면하게 되어 처음으로 질문을 남겨봅니다. 크롬을 자동으로 여는 과정까지는 완벽하나, 유튜브 검색창에 자동으로 입력이 되지 않습니다. 문제는 코드를 건드리지 않고 계속 시도(Run) 해보면 가끔 한번씩은 성공합니다. time.sleep 값을 늘려도 보고 줄여도 보고 아무리 해봐도 그냥 랜덤이네요.... 실패 시엔 이렇게 출력됩니다. selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable (Session info: chrome=81.0.4044.92) 크롬과 드라이버 다운그레이드도 해보았고 모두 최신으로도 해봐도 여전하네요. 구글링 해봐도 비슷한 상황이라 골머리 앓으며 질문 남겨봅니다...ㅜ ps. 가끔은 attributeerror: 'Webdriver' object has no attribute 'send_keys' 이런 에러를 출력 받곤 합니다.
-
미해결윤재성의 스프링 프레임워크 개발자를 위한 실습을 통한 입문 과정
생성자 파라미터 순서 getBean 문의
생성자 파라미터 순서에 대해서 강의를 들었는데요. xml에 index값을 하지 않고 똑같은 생성자인데 파라미터 순서만 다른 생성자를 3개 부여 하면 어떤 우선순위로 getBean을 하나요? 이런식으로 하면 "TestBean의 생성자" 가 print되는데요. 만약 중간에 있는 생성자(2번째)를 주석처리하고 실행하면 맨 마지막꺼가 getBean 되더라고요. 이게 어떤 우선순위인지 실행만으로 찾기 힘드네요 ㅠㅠ ----------------------------------------------------- public TestBean(int data1,double data2,String data3) { System.out.println("TestBean의 생성자 : 변수 3개"); this.data1 = data1; this.data2 = data2; this.data3 = data3; } public TestBean(int data1,String data3,double data2) { System.out.println("TestBean2의 생성자 : 변수 3개"); this.data1 = data1; this.data2 = data2; this.data3 = data3; } public TestBean(String data3,int data1,double data2) { System.out.println("TestBean3 생성자 : 변수 3개"); this.data1 = data1; this.data2 = data2; this.data3 = data3; } -------------------------------------------------------------------------------------------
-
미해결Vue.js 끝장내기 - 실무에 필요한 모든 것
에러 처리에 대해서 질문좀..
안녕하세요. 초보개발자입니다.제가 다니고 있는 회사에서는 아직 jsp에cdn으로 vue를 등록해서 사용하고 있어요.(cli버전으로 개발하는 방법을 따로 공부중입니다. )그래서 비동기 통신을 제이쿼리의 ajax를 사용중인데 catch 문에서 에러 처리하는게 ajax에서 error :{}부분에 해당하는건가요?
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
혹시 사이킷런에서 이런게 될까요?
크게 두가지의 질문이 있습니다. 1. 서비스화 질문 2. 학습한 데이터 저장/로드 질문 3. 추가 학습에 대한 질문 1. 사이킷런을 서비스화를 한다고 하였을 때 파이썬 모듈로 서비스로 올려서 학습까지 진행한뒤에 웹서비스같은 걸 띄워서 피쳐들을 파라미터를 받는 형식으로 해서 예측 결과를 리턴하도록 서비스를 구성해야 하나요? 일반 현업이나 많이 쓰이는 방법이 궁금해서 질문 드립니다. 2. 만약 서비스를 하다가 서비스를 재실행해야 되는 문제나 여러가지 문제가 생길경우 학습한 데이터를 서비스를 올릴때 다시 학습을 진행해야 하나요? 아니면 학습한 메모리 데이터를 따로 저장하는 기능이 있어 다시 실행할 때 다시 로드 후 바로 서비스화 할 수 있나요? 3. 현재 학습한 학습기에다가 추가로 어떠한 데이터들을 추가적으로 학습을 시키고 싶을경우 이 피쳐들을 다시 이전 피쳐들과 합쳐서 다시 학습을 시키는 방법밖에 없을까요? 예를 들어 이전 학습기는 어제까지 데이터를 학습해서 서비스를 하고 하루뒤에 오늘 데이터를 추가해서 학습해야 하는 상황에서 좋은 방법이 있을까요? 이런 기술들이 현업에서 사용될 니즈가 있는 기술인데 생각하다 궁급해서 질문 남김니다!!
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 챗봇 사이트 만들기
환경 변수 설정 문제
UnhandledPromiseRejectionWarning: Error: Could not load the default credentials. 환경 변수 설정 후에는 정상 작동하지만 vscode를 껐다 키면 환경 변수를 다시 설정해줘야하는데 저의 문제인가요?
-
미해결파이썬 무료 강의 (기본편) - 6시간 뒤면 나도 개발자
1분대 첫 계산당시 6/3은 왜 2가 아닌 2.0으로 출력이 되는건가요?
궁금합니다. 단순 나눗셈이라 저렇게 나오는건지요
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
"Unable to verify the first certificate" 오류 관련
계정명 영문명이고 관리자 권한 실행 apm config set strict-ssl false 다 아무 소용 없네요 (apm을 기존 답변에 나와있는 bin 폴더까지 들어가서 실행할 필요도 없는 것 같구요 - 윈도우10 기준) apm install autocomplete-python 으로 일단 설치했습니다 강의 본게 30분 남짓인 것 같은데 이거 찾느라 30분 이상 낭비한게 시작부터 너무 짜증나고 같은 질문이 반복되었는데 제대로 답변이 된 것도 없고 초보자용 강의에서 왜 굳이 설정이 까다로운 atom으로 강의가 진행되어야 하는지도 모르겠습니다 시작부터 별로네요
-
미해결남박사의 파이썬으로 실전 웹사이트 만들기
로컬서버에서 코드 작성한게 반영이 안되고 있습니다.
강의 내용 중, 구글 클라우드 플랫폼을 이용한 방법으로 웹사이트를 구현중에 있는데요, 참 이상하게도 웹서버에서는 정상적으로 제가 구현한 사이트가 정상 작동이 되는데, 로컬서버에서는 제가 수정한 코드들이 제대로 반영이 안되고 있습니다. svg, css 적용이 제대로 안되고 그림표시로 나오더라구요. 혹시 몰라서 컴퓨터 재시작도 해보고, 크롬 브라우저의 캐시 삭제도 여러번 시도 해봤지만 로컬환경에서 수정사항들이 전혀 반영이 되지 않고 있는 상황인데요... 하나 해결하면 또다른 문제가 계속 생기네요.. ㅎㅎ;; 남박사님, 혹시 이런경우는 어떻게 해결을 해야 하는지 너무 궁금합니다.
-
미해결트렐로 개발로 배우는 Vuejs, Vuex, Vue-Router 프론트엔드 실전 기술
노드 api 서버 npm install 시 발생하는 에러
gyp ERR! find Python gyp ERR! find Python Python is not set from command line or npm configuration gyp ERR! find Python Python is not set from environment variable PYTHON gyp ERR! find Python checking if "python" can be used gyp ERR! find Python - "python" is not in PATH or produced an error gyp ERR! find Python checking if "python2" can be used gyp ERR! find Python - "python2" is not in PATH or produced an error gyp ERR! find Python checking if "python3" can be used gyp ERR! find Python - "python3" is not in PATH or produced an error gypgyp ERR! find PythonERR! checking if the py launcher can be used to find Python 2 gypfind Python ERR! gypfind Python - "py.exe" is not in PATH or produced an error ERR!gyp find PythonERR! Python is not set from command line or npm configuration find Pythongyp checking if Python is C:\Python27\python.exe ERR!gyp find Python Python is not set from environment variable PYTHON ERR!gyp find Python - "C:\Python27\python.exe" could not be run ERR!gyp find Python checking if "python" can be used ERR! gypfind Python checking if Python is C:\Python37\python.exe gypERR! ERR! find Pythonfind Python - "C:\Python37\python.exe" could not be run - "python" is not in PATH or produced an error gypgyp ERR!ERR! find Pythonfind Python checking if "python2" can be used gyp gypERR! ERR!find Python ********************************************************** find Pythongyp - "python2" is not in PATH or produced an error gypERR! ERR!find Python You need to install the latest version of Python. gypfind Python checking if "python3" can be used ERR!gyp find PythonERR! Node-gyp should be able to find and use Python. If not, gyp find PythonERR! - "python3" is not in PATH or produced an error gypfind Python you can try one of the following options: gypERR! ERR!find Python checking if the py launcher can be used to find Python 2 find Pythongyp - Use the switch --python="C:\Path\To\python.exe" ERR!gyp find Python - "py.exe" is not in PATH or produced an error ERR!gyp ERR!find Python (accepted by both node-gyp and npm) find Python checking if Python is C:\Python27\python.exe gyp gypERR! ERR! find Pythonfind Python - Set the environment variable PYTHON - "C:\Python27\python.exe" could not be run gypgyp ERR!ERR! find Pythonfind Python - Set the npm configuration variable python: checking if Python is C:\Python37\python.exe gyp gypERR! find PythonERR! npm config set python "C:\Path\To\python.exe" gypfind Python - "C:\Python37\python.exe" could not be run gypERR! find PythonERR! For more information consult the documentation at: find Pythongyp gypERR! ERR!find Python https://github.com/nodejs/node-gyp#installation find Pythongyp ********************************************************** gypERR! ERR!find Python find Python ********************************************************** You need to install the latest version of Python. gypgyp ERR! find PythonERR! Node-gyp should be able to find and use Python. If not, gypfind Python ERR! find Python you can try one of the following options: gypgyp ERR!ERR! find Pythonconfigure error - Use the switch --python="C:\Path\To\python.exe" gypgyp ERR!ERR! stackfind Python Error: Could not find any Python installation to use (accepted by both node-gyp and npm) gypgyp ERR!ERR! find Pythonstack - Set the environment variable PYTHON at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) gypgyp ERR! ERR!find Python - Set the npm configuration variable python: gypstack ERR! at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gyp find Python npm config set python "C:\Path\To\python.exe" ERR! gypstack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16) ERR!gyp find Python For more information consult the documentation at: ERR!gyp stackERR! at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16) gypfind Python https://github.com/nodejs/node-gyp#installation ERR!gyp ERR!stack find Python at exithandler (child_process.js:310:5) ********************************************************** gypgyp ERR!ERR! stackfind Python at ChildProcess.errorhandler (child_process.js:322:5) gyp ERR!gyp stackERR! at ChildProcess.emit (events.js:311:20) gypconfigure error ERR! gypstack at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12) ERR!gyp stackERR! Error: Could not find any Python installation to use gypstack at onErrorNT (internal/child_process.js:469:16) ERR!gyp stackERR! at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) gypstack at processTicksAndRejections (internal/process/task_queues.js:84:21) ERR! stackgyp at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gypERR! ERR!System Windows_NT 10.0.17763 stackgyp at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16) gypERR! ERR!command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\LG\\WebstormProjects\\lecture-vue-trello-server\\node_module s\\sqlite3\\lib\\binding\\node-v72-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\LG\\WebstormProjects\\lecture-vue-trello-server\\node_modules\\sqlite3\\lib\\binding\\node-v72-win32-x64" "--napi_version=5" "--node_abi_napi=nap i" stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16) gyp gypERR! ERR! cwdstack C:\Users\LG\WebstormProjects\lecture-vue-trello-server\node_modules\sqlite3 at exithandler (child_process.js:310:5) gypgyp ERR!ERR! stack at ChildProcess.errorhandler (child_process.js:322:5) node -vgyp v12.16.1 ERR!gyp ERR!stack at ChildProcess.emit (events.js:311:20) node-gyp -vgyp v5.0.5 ERR!gyp stackERR! at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12) gyp not okERR! stack at onErrorNT (internal/child_process.js:469:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21) gyp ERR! System Windows_NT 10.0.17763 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\LG\\WebstormProjects\\lecture-vue-trello-server\\node_modules\\sql ite3\\lib\\binding\\node-v72-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\LG\\WebstormProjects\\lecture-vue-trello-server\\node_modules\\sqlite3\\lib\\binding\\node-v72-win32-x64" "--napi_version=5" "--node_abi_napi=napi" gyp ERR! cwd C:\Users\LG\WebstormProjects\lecture-vue-trello-server\node_modules\sqlite3 gyp ERR! node -v v12.16.1 gyp ERR! node-gyp -v v5.0.5 gypnode-pre-gyp ERR!ERR! build errornot ok node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\LG\WebstormProjects\lecture-vue-trello-server\node_modu les\sqlite3\lib\binding\node-v72-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\LG\WebstormProjects\lecture-vue-trello-server\node_modules\sqlite3\lib\binding\node-v72-win32-x64 --napi_version=5 --node_abi_napi=napi' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\LG\WebstormProjects\lecture-vue-trello-server\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:311:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) node-pre-gyp ERR! System Windows_NT 10.0.17763 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\LG\\WebstormProjects\\lecture-vue-trello-server\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\LG\WebstormProjects\lecture-vue-trello-server\node_modules\sqlite3 node-pre-gyp ERR! node -v v12.16.1 node-pre-gyp ERR! node-pre-gyp -v v0.10.3 node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\LG\WebstormProjects\lecture-vue-trello-server\node_modules\sqlite3\lib\binding\node-v7 2-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\LG\WebstormProjects\lecture-vue-trello-server\node_modules\sqlite3\lib\binding\node-v72-win32-x64 --napi_version=5 --node_abi_napi=napi' (1) npm WARN rollback Rolling back safe-buffer@5.1.2 failed (this is probably harmless): EPERM: operation not permitted, rmdir 'C:\Users\LG\WebstormProjects\lecture-vue-trello-server\node_modules\minipass\node_modules' npm WARN lecture-vue-trello-server@1.0.0 No description npm WARN lecture-vue-trello-server@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sqlite3@4.0.2 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@4.0.2 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\LG\AppData\Roaming\npm-cache\_logs\2020-04-11T16_23_05_051Z-debug.log 무슨오류인가요..? sqlite3, python 둘다 설치했는데도 에러가 납니다 ㅠㅠ 강의에는 아무 설명도 없고 답답해서 질문올려요
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
열의 합, 행의 합을 구할 때
격자판 최대합 영상에서와 같이 가로와 세로가 n x n으로 같을 때, 열과 행의 합을 구할 때는 for i in range(n): 열 = 행 = 0 for j in range(n): 열 += a[i][j] 행 += a[j][i] print(열, 행) 과 같이 코드를 간단하게 할 수 있었습니다. 이 영상만 보고 '아, 앞으로도 열과 행을 합칠 때는 i와 j 자리만 바꿔주면 되겠구나!' 라고 생각했고 이후의 예제에서 적용해보았는데 그렇지 않았습니다. 예를 들어서 n x n 격자판이 아닌, 7 x 3 격자판이라 가정하겠습니다. 나눠진 부분에서의 각 열의 합, 행의 합을 구하려고 합니다. 이번 영상에서 한 것처럼 코드를 만들었지만, for i in range(3): 열 = 행 = 0 for j in range(4, 7): 열 += a[i][j] 행 += a[j][i] print(열, 행) IndexError가 나면서 오류가 발생했습니다. 고민해보다가 단순히 자리만 바꾸는건 안되겠다 싶어서 코드를 이렇게 바꿨습니다. for i in range(3): 열 = 0 for j in range(4, 7): 열 += a[i][j] print(열) for j in range(4, 7): 행 = 0 for i in range(3): 행 += a[i][j] print(행) 이렇게 바꿨더니 실행은 되었지만, 코드가 2배로 길어졌습니다. 혹시 이렇게 코드를 2배로 적지 않고 for 구문 2개 1번으로만 간단하게 적는 방법이 있습니까?