반응형
반응형

python에서 pygame 실행해보기 aliens  https://www.pygame.org/wiki/GettingStarted

 

anaconda 설치하고 가상환경 들어가서 파이썬 버전(3.10 이상) 확인하고 

pygame 인스톨 후 실행. 

-- pygame 외계인 게임실행하기 

anaconda shell에서 

> pip install -U pygame

> python -m pygame.examples.aliens

https://www.pygame.org/wiki/GettingStarted

(p_pygame) PS D:\_py_project\> conda deactivate
(base) PS D:\_py_project\> conda activate p_pygame
(p_pygame) PS D:\_py_project\> pip install -U pygame
Requirement already satisfied: pygame in c:\programdata\anaconda3\envs\p_pygame\lib\site-packages (2.4.0)
(p_pygame) PS D:\_py_project\> python -m pygame.examples.aliens

반응형
반응형

 

아나콘다 다운로드 및 설치

 

가상환경 들어가서 pip update 필요하다. 

conda update pip

현재 (base) 환경에서 사용중인 파이썬 버전을 확인하려면 다음 명령을 실행합니다.

PIP는 Python Package Index (PyPI) 저장소로부터 패키지를 다운받아 설치 및 관리해주는 패키지 매니저 입니다. pip install [패키지 이름]의 형태로 패키지를 설치하면 됩니다.
Pip를 최신 버전으로 업그레이드 하려면 다음 명령을 실행합니다.
(base) PS D:\_py_project> python --version

(base) PS D:\_py_project> python -m pip install --upgrade pip

아나콘다 패키지 업데이트

(base) C:\Users\사용자계정>conda -–version

(base) C:\Users\사용자계정>conda update --all

 

pygame :  https://www.pygame.org/wiki/GettingStarted

 

GettingStarted - pygame wiki

Pygame Installation Pygame requires Python; if you don't already have it, you can download it from python.org. It's recommended to run the latest python version, because it's usually faster and has better features than the older ones. Bear in mind that pyg

www.pygame.org

 

아나콘다 설치 모르겠으면 기본 설치로~ https://docs.python.org/3/using/windows.html#installation-steps

 

4. Using Python on Windows

This document aims to give an overview of Windows-specific behaviour you should know about when using Python on Microsoft Windows. Unlike most Unix systems and services, Windows does not include a ...

docs.python.org

 

반응형
반응형

web library - petercollingridge Site http://www.petercollingridge.co.uk/tutorials/

 

Tutorials

Explaining how to make fun things because, if nothing else, it helps me understand them.

petercollingridge.co.uk

Tutorials

Home


Explaining how to make fun things because, if nothing else, it helps me understand them.


SVG Tutorials

Collections of SVG tutorials covering the basics to more advanced techniques for making SVGs interactive.

3D Graphics

Building simple 3D engines with Pygame or processing.js.

Pygame physics simulation

Building a simple but versatile physics simulation with Python and Pygame.

Computational geometry

Solving geometry problems for computer graphics.

Inkscape

How to achieve some simple effects in Inkscape.

Bioinformatics

Various tutorials explaining some simple bioinformatics concepts.

Python

Not really a tutorial, but short explanations of various Python things I've learnt.

 

반응형

+ Recent posts