본문 바로가기
728x90
반응형

path8

vscode 실행하기 (Windows) 현재 vscode가 설치가 된 상태를 가정함. 설치가 안된 경우 다음을 따라 설치할 것 (extension 설치 전까지만 따라하면 됨).2024.02.05 - [개발환경] - [vscode] vscode 설치하기 (on Windows) + extensions [vscode] vscode 설치하기 (on Windows) + extensions0. 시작하기 앞서서0.0 vscode와 visual studio 비교.https://ds31x.blogspot.com/2023/07/env-visual-studio-code-and-visual-studio.html?view=classic [Env] Visual Studio Code and Visual StudioVisual Studio Code (vscode)는 I.. 2025. 9. 15.
[Py] How to Install Python on Windows from Python.org 이 문서는 python.org 에서 제공하는 Python을 Windows에 설치하는 방법을 단계별로 설명함. 일반적으로는 conda등을 이용한 설치를 보다 선호함.2025.03.02 - [개발환경] - [Tool] conda 사용법 - Anaconda and Miniconda [Tool] conda 사용법 - Anaconda and Miniconda1. Conda란?프로그래밍 언어(특히 Python)의 패키지, 종속성을 관리하기 위한 오픈 소스 패키지 관리 시스템(or Package Manager)과이들이 설치되어 구성되는 (가상)환경을 관리하는 환경관리시스템(packageds31x.tistory.com다운로드python.org 웹사이트에 가서 Downloads를 선택하여 Python 3.13.2 (최신.. 2025. 3. 6.
[conda] windows 터미널에서 conda 설정 wt를 먼저 설치하고 나서 conda를 설치하면 자동으로 설정이 되지만,conda설치 이후 wt를 설치할 경우, 설정과정이 필요할 수 있음. 이 문서는 터미널에 현재 설치된 conda를 설정하는 방법을 다룸.설정 (Auto Configuration):일반적으로 conda init cmd.exe or conda init powershell 등을 통해 가능해야 하는데...안되는 경우도 생각보다 많다.우선적으로 conda 에서 지원하는 shell은 다음과 같음.OSShelldesc.Windowscmd.execommand prompt (권장)Windowspowershellpowershell을 업데이트하고 사용하는 것을 권장.Linux/macOSbashbone again shell (보통 Linux에서 기본)L.. 2024. 8. 14.
[Python] pathlib.Path 사용하기. Path 클래스는 pathlib 모듈의 클래스 :file 및 directory의 path 를 객체지향적으로 취급하기 쉬운 인터페이스를 제공하는Python 표준 라이브러리임.Python 3.4 이상에서 사용가능함. 더보기2023.07.04 - [Python] - [Python] os 모듈의 함수들 : file과 directory 관련 [Python] os 모듈의 함수들 : file과 directory 관련os 모듈의 함수들 : file과 directory 관련os는operating system (운영체제)와상호작용을 위한 다양한 기능을 제공하는built-in module임.대부분 os 종속적인 기능들이다.os.path 모듈ds_exist = os.path.exists('path')pathds31x.tist.. 2024. 3. 31.
[Env] conda 환경설정 스크립트: conda init 환경변수 PATH에 conda를 추가하지 않도록 설치하고 나서,터미널 등에서 conda를환경변수 PATH 에 추가하려면, conda prompt 나 conda가 설치된 경로로 이동한 이후, 다음을 수행하면 됨 (Windows의 경우, anaconda prompt 등).conda init해당 명령어로 변경된 것을 되돌리려면, 다음을 수행.conda init --reverse다음의 명령어는 임시적으로 session동안만 적용하고 싶은 경우에 사용한다.source ~/miniconda3/etc/profile.d/conda.shhttps://dsaint31.tistory.com/238 sh파일(non-interactive shell script)에서 conda 가상환경 activation!ubuntu에서 셀스크.. 2024. 3. 11.
[Python] sys 모듈 Python VM (or Interpreter) 와의 상호작용 담당. sys 모듈은interpreter에 의해 사용되거나 유지되는 variables 와interpreter와 밀접(interpreter 종료 등)하게 관련된 functions 에대한 access를 제공함. 주로 많이 이용되는 attributes는 다음과 같음.sys.argvPython script에 command line을 통해 전달된 argument list.argv[0] : script file 이름.argv[1] 부터는 script file 명 다음에 전달된 argument임. 공백문자로 구분됨.python -c 를 통해 python code가 주어진 경우에는 argv[0]가 -c임. #!/bin/env python# test_argv.. 2023. 9. 25.
728x90
반응형