본문 바로가기
반응형

● IDE, System35

[파이썬 에러] VSCODE "unresolved import 'django.contrib'Python(unresolved-import)" urls.py from django.contrib import admin from django.urls import path 위 코드에서 오류발생 unresolved import 'django.contrib'Python(unresolved-import) unresolved import 'django.urls'Python(unresolved-import) 1. Ctrl키와 함께 , 키를 눌러준다. 2. terminal.integrated.shell.windows 를 입력 3. Edit in settings.json을 클릭 4. 다음 코드를 추가한다. "python.pythonPath": "/path/to/your/venv/bin/python" 2021. 2. 26.
[파이썬 에러] 가상환경 실행 중 에러 발생 : deactivate () { ^ SyntaxError: invalid syntax 에러 $ python myvenv/Scripts/activate File "D:\DEV\myvenv\Scripts\activate", line 4 deactivate () { ^ SyntaxError: invalid syntax 해결 $ source myvenv/Scripts/activate 참고 : stackoverflow.com/questions/49799331/when-i-try-to-activate-a-virtual-environment-with-venv 2021. 2. 26.
[VSCODE] 비쥬얼스튜디오코드에서 깃허브 배쉬 사용, 설치하기. (Visual Studio Code with Git bash) 비쥬얼 스튜디오 코드의 터미널창에서 깃배쉬를 사용해보자. 1. Ctrl키와 함께 , 키를 눌러준다. 2. terminal.integrated.shell.windows 를 입력 3. Edit in settings.json을 클릭 4. bash.exe가 있는 폴더 위치로 코드를 수정한다. 수정 전 코드 "terminal.integrated.shell.windows": "" 수정 후 코드 "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe" 5. 새 터미널 창을 열거나, VSCODE를 새로 실행하면 터미널창에 git bash가 나타난다. 끝. 6. 만약에 git bash가 나타나지 않는다면? vscode로 작업하고자 하는 폴더.. 2021. 2. 26.
[파이썬 에러] settings.json에 "python.jediEnabled" : false 가 존재하지 않습니다. (Unknown Configuration Setting : No quick fixes available) 현재 "python.jediEnabled" : true로 수정해야 하지만 이 코드 자체가 없다. "python.jediEnabled": true, # true : jedi 동작. false : jedi 동작X 추가로 입력을 해도 Unknown Configuration Setting : No quick fixes available 이란 오류가 발생한다. 이유? vscode-python에선 2020년 6월 16일에 python.jediEnabled에 대한 세팅이 삭제됨. 해결책 : "python.languageServer": "Microsoft"를 "python.languageServer": "Jedi"으로 수정한다. 문제해결도움 : stackoverflow.com/questions/62470439/vsco.. 2021. 2. 24.
[장고 에러] WARNING: You are using pip version 20.2.3; however, version 21.0.1 is av 에러발생 WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available 해결방법은 간단하다. pip를 업데이트하면 끝! OS에 따라 다른 명령어를 입력하면된다. 1. 리눅스환경 : pip 업데이트 하기 2. 윈도우 환경 : pip 업데이트 하기 python -m pip install --upgrade pip 도움이 되셨다면 하단의 ❤하트❤ 클릭해주세요! 감사합니다 😊 2021. 2. 23.
[장고 에러] ImportError: Couldn't import Django. Are you sure it's installed and ava 오류명ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? 원인가상환경에 django가 설치되어 있지 않기 때문 해결가상환경에서 하단 코드입력하여 설치 진행pip install django 설치 후 하단 경고 발생WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.You should consider upgrading via the 'c:\users\topgu\appda.. 2021. 2. 23.
[장고 에러] unresolved import 'myapp' Python(unresolved-import) urls.py 작성과정 중 import myapp.views를 입력하니 에러발생 unresolved import 'myapp' Python(unresolved-import) 해결과정 A 1. VSCODE에서 Ctrl + Shift + P를 누른다. 2. Python Select Interpreter 입력 3. 사용중인 Python 버전에 맞는 경로를 선택 A과정이 안된다면 B과정을 따를 것 해결과정 B 1. Ctrl + Shift + P 2. Language Specific 검색 3. Python 검색해서 클릭하면 settings.json파일이 열림 "python.jediEnabled" 항목을 삭제함 만약 settings.json에서"python.jediEnabled" : false, 가 없다면? 추가로.. 2021. 2. 23.
[VSCODE] Visual studio code에서 git 허브와 연동하기 / git 허브 커밋하기 깃허브 연동하기 1. 깃허브와 연동하기 VSCODE에서 F1키 누르기 git clone 입력 Git : Clone 메뉴 선택 만약, git clone을 입력했음에도 No matching commands라고 뜬다면? git-scm.com/에서 깃허브를 설치해야된다. 설치 후 vscode를 재실행한 뒤, git clone을 입력하면 정상적으로 뜬다. 2. 깃 주소 입력하기 깃 주소는 본인의 깃Repository로 가면 있음 3. 클론 시킬 폴더(위치 설정) 선택하면 끝. VSCODE에서 깃허브에 Commit, push하기 1. VSCODE에서 3번째 클릭 2. + 클릭 3. Commit 메시지 입력 4. 체크표시 클릭 만약에 여기서 가 뜬다면?? 5. 새로고침표 클릭 도움이 되셨다면 하단의 ❤하트❤ 클릭해주.. 2021. 2. 22.
Jupyter Notebook 주피터노트북에 이미지 삽입하기 1. 주피터 노트북에 패키지 설치하고!pip install IPython2. 주피터노트북에 이미지 삽입하도록 패키지 임포트 from IPython.display import Image 3. 이미지 불러오기 (2가지 방법있음)A. 코드블럭Image("파일경로/파일명.확장자명") 현재 코드를 입력하고 있는 파일의 하위폴더(폴더명:folder)에 okky.jpg라는 파일명을 불러오고 싶다.Image("folder/okky.jpg") B. 마크다운![이미지파일명](파일경로/파일명.확장자명) 2021. 2. 21.
쥬피터 노트북 깃허브 연동하기 1. 깃허브 다운 Git - Downloading Package Downloading Git Now What? Now that you have downloaded Git, it's time to start using it. git-scm.com 2. 깃허브 설정 git bash 실행 후 입력 3. 깃 변화 확인하기 $ git status 4. 로컬과 깃허브 사이트 연결하기 $ git remote add origin 레파지토리주소 5. 로컬기록, 깃허브로 전송하기 $ git push origin master 깃허브 클론하기 1. 불러오기 $ git clone 레파지토리주소 2. 변경한 코드 깃허브에 푸쉬하기 $ git status $ git add README.md $ git commit -m “new c.. 2021. 2. 7.
git add, git commit 취소하기 git add 취소 git reset (전체 파일 add 취소) git reset HEAD 파일 (특정 파일 add 취소) git commit 취소 git reset HEAD^ (가장 최신 커밋 1개 취소(삭제)) git reset HEAD^^(가장 최신 커밋 2개 취소(삭제)) 꺽쇠 갯수에 따라 최신 커밋을 필요한만큼 순서대로 삭제할 수 있음 $ git reset HEAD^ 입력 시 오류발생 fatal: ambiguous argument 'HEAD^': unknown revision or path not in the working tree. 2021. 2. 5.
깃허브에 이미지, 링크 넣기 깃허브에 이미지, 링크 넣기 gist.github.com/ninanung/2b81a5db946c26c98c573e3662a92b62 사실은 내가 보기위한 마크다운 문법설명서 - 4. 링크와 이미지넣기 사실은 내가 보기위한 마크다운 문법설명서 - 4. 링크와 이미지넣기. GitHub Gist: instantly share code, notes, and snippets. gist.github.com 2021. 2. 2.
[Git] 깃허브 시작하기. 총정리 (init, add, commit, push, pull) 1. git bash 실행 후 이름, 이메일 입력 git config --global user.name "myname" git config --global user.email "myemail@gmail.com" 2. 저장소 설정 후 깃 초기 설정 깃허브에 커밋할 파일이 있는 폴더로 가서 git init을 해야한다. (가상환경이 포함된 파일을 Commit하고자 한다면, 가상환경이 들어있는 폴더로 들어가서 커밋진행. 참고로 가상환경은 .gitignore를 해줘야하는데 이에 대한 자료는 여기에 0ver-grow.tistory.com/915) 3. 깃허브 저장소(repository) 연결 후 저장소 주소 확인 git remote add origin 나의 GIt repository 주소 에러 발생 : error:.. 2021. 2. 1.
[DB연결 웹앱 JS] VSCode javascript 출력하기 Extension > code runner 검색해서 설치 crtl + alt + N 입력하면 정상실행됨 출처 : https://stackoverflow.com/questions/31778413/run-javascript-in-visual-studio-code Run JavaScript in Visual Studio Code Is there a way to Execute javascript and display the results using Visual Studio Code? For example a script file containing console.log('hello world'); I assume that nodejs would be needed but c... stackoverflow.com 2019. 7. 29.
Updates were rejected because the remote contains work that you do git push -u origin master 입력시 오류발생 hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. git pull 입력 후.. 2019. 7. 10.
git push 에러 발생 해결방법 에러내용 hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. 에러 발생 git push 명령어를 실행하여 내 로컬 레포지토리의 내용을 github 원격 레포지토리로 업로드(push)하려 했는데 되지 않았다. 에러의 이유 github에서 레포지토리를 생성할 때, README.md 파일을 생성했기 때.. 2019. 7. 3.
git clone, push, pull 하기 1. 새 저장소 만들기 git을 clone하거나 commit할 폴더로 들어가서 git init 입력 2. 저장소 받아오기 로컬 저장소 복제하기 git clone /로컬/저장소/경로 원격 서버 저장소 복제하기 git clone 사용자명@호스트:/원격/저장소/경로 3. 변경 파일 인덱스에 추가하기 git add "파일명" 만약 인덱스에 추가할 파일이 많을시 git add . 으로 입력 4. commit하기 git commit -m "설명쓰기" 5. 기존 원격 저장소에 발행(PUSH)하기 git push origin master 여기서 master는 발행하려는 가지(branch) 이름 만약 기존 원격 저장소가 아닌 다른 원격 서버에 발행하려면 서버주소를 먼저 입력할 것 git remote add origin .. 2019. 6. 21.
반응형