Visual Studio Code로 Python 환경 만들기
5285 단어 #VisualStudioCodeWindows10Python
미리!!
Anaconda와 같은 Python의 실행 환경이 있으면 먼저 마운트 해제하십시오
제어판을 확인한 결과 파이톤이 대량으로 발견됐습니다.

Windows 10에 Python 설치
파이썬의 공식 홈페이지의 다운로드 페이지에서 설치합니다.


Add Pythn to Path 선택
설치를 잊어버리면 마운트 해제 후 다시 합니다


PowerShell에서 스크립트를 실행할 수 있습니다.
시작 메뉴에서 Windows PowerShell | Windows PowerShell을 시작하고 다음 명령을 실행합니다.
hoge.txt
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
이 명령은 처음으로 집행해 주십시오.두 번째 이후에는 필요 없어.
시행해 보다

Visual Studio Code의 설정
설치 확장
[파일] - [사용자 설정] - [확장 기능]
Liter 기능을 비활성화합니다.
VS 코드의 표시 메뉴, 명령 트레이...탭
hoge.txtPython: select linter
표시된 Pythhon:Select Linter를 클릭합니다.
다음 목록에서 Disable Litting 선택
VScode에서 실행
실행할 때 오른쪽 상단의▶태그로 실행
PySimpleGUI 설치
Visual Studio Code의 [Terminal] - [New Teaminal]에서 PowerShell 실행
hoge.txtpip install pysimplegui
pip의 경로가 통과하지 않으면 오류가 발생하지만 위에서 설명한 대로 설치할 때 경로를 통과했기 때문에 Visual Studio Code를 다시 시작하면 OK입니다.
재부팅 후 pip 업그레이드
hoge.pypython -m pip install --upgrade pip
샘플 프로그램 실행
샘플 프로그램을 가지고 실행하면 화면이 나와요
작업 스케줄러로 파이썬 실행하기
Windows 작업 스케줄러에서 Python을 실행하려면 아래 설정을 누르십시오
■ 프로그램/스크립트: ptyhon.exe 경로
C:\Users\Administrator\AppData\Local\Programs\Python\Python39\python.exe
■ 매개 변수 추가:python 파일 이름
Scrap.py
■ 시작(선택 사항):python 파일이 있는 곳
C:\Users\Administrator\Documents\Python\
Python.exe 어디 있는지 확인
명령 프롬프트에서 실행
hoge.txtpy --list-paths
디버그 실행
Reference
이 문제에 관하여(Visual Studio Code로 Python 환경 만들기), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/healing_code/items/9d3eb76e69c218f165e0
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Python: select linter
pip install pysimplegui
python -m pip install --upgrade pip
py --list-paths
Reference
이 문제에 관하여(Visual Studio Code로 Python 환경 만들기), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/healing_code/items/9d3eb76e69c218f165e0텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)