PythonใฉใคใใฉใชใPygameใใpipใง็ฐกๅใซใคใณในใใผใซใใๆนๆณใซใคใใฆใพใจใใพใใใ
Pygameใpipใงใคใณในใใผใซใใๆ้
ใใใฑใผใธ็ฎก็ใทในใใ ใpipใใงใPygameใใฉใคใใฉใชใใคใณในใใผใซใใๆ้ ใฏไธ่จใฎ้ใใงใใ
โ ใณใใณใใใญใณใใ๏ผใฟใผใใใซ๏ผใ่ตทๅใใพใใ
โก ไธ่จใฎใณใใณใใๅฎ่กใใใPygameใใใคใณในใใผใซใใพใใ
pip install pygame
โข ไธ่จใฎใตใณใใซใใญใฐใฉใ ใๅฎ่กใใPygameใฎใใผใธใงใณๆ ๅ ฑใชใฉใ่กจ็คบใใใใใคใณในใใผใซๆๅใงใใ
# -*- coding:utf-8 -*- import pygame print(pygame.version.vernum) """ pygame 2.6.0 (SDL 2.28.4, Python 3.11.5) Hello from the pygame community. https://www.pygame.org/contribute.html 2.6.0 """
่งฃ่ชฌๅ็ป
ใใฎใใผใธใฎๅ ๅฎนใฏใไปฅไธๅ็ปใงใ่งฃ่ชฌใใฆใใพใใ
้ข้ฃใใผใธ

ใPygame่ถ
ๅ
ฅ้ใไฝฟใๆนใจใตใณใใซใฒใผใ ใ่งฃ่ชฌ
Pygameใง2Dใฒใผใ ใ็ฐกๅใซๅถไฝใใๆนๆณใๅ
ฅ้่
ๅใใซ่งฃ่ชฌใใพใใ

ใPython่ถ
ๅ
ฅ้ใไฝฟใๆนใจใตใณใใซ้
Pythonใฎไฝฟใๆนใซใคใใฆใๅบ็คๆๆณใใๅฟ็จไพใพใงๅ
ฅ้่
ๅใใซ่งฃ่ชฌใใพใใ
ใณใกใณใ
C:\python>pip install –upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 9.0.3
Uninstalling pip-9.0.3:
Exception:
Traceback (most recent call last):
File “c:\program files (x86)\python36-32\lib\shutil.py”, line 544, in move
os.rename(src, real_dst)
PermissionError: [WinError 5] ใขใฏใปในใๆๅฆใใใพใใใ: ‘c:\\program files (x86)\\python36-32\\lib\\site-packages\\pip-9.0.3.dist-info\\description.rst’ -> ‘C:\\Users\\Public\\Documents\\iSkysoft\\CreatorTemp\\pip-8tot8cky-uninstall\\program files (x86)\\python36-32\\lib\\site-packages\\pip-9.0.3.dist-info\\description.rst’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “c:\program files (x86)\python36-32\lib\site-packages\pip\basecommand.py”, line 215, in main
status = self.run(options, args)
File “c:\program files (x86)\python36-32\lib\site-packages\pip\commands\install.py”, line 342, in run
prefix=options.prefix_path,
File “c:\program files (x86)\python36-32\lib\site-packages\pip\req\req_set.py”, line 778, in install
requirement.uninstall(auto_confirm=True)
File “c:\program files (x86)\python36-32\lib\site-packages\pip\req\req_install.py”, line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File “c:\program files (x86)\python36-32\lib\site-packages\pip\req\req_uninstall.py”, line 115, in remove
renames(path, new_path)
File “c:\program files (x86)\python36-32\lib\site-packages\pip\utils\__init__.py”, line 267, in renames
shutil.move(old, new)
File “c:\program files (x86)\python36-32\lib\shutil.py”, line 559, in move
os.unlink(src)
PermissionError: [WinError 5] ใขใฏใปในใๆๅฆใใใพใใใ: ‘c:\\program files (x86)\\python36-32\\lib\\site-packages\\pip-9.0.3.dist-info\\description.rst’
You are using pip version 9.0.3, however version 19.1.1 is available.
You should consider upgrading via the ‘python -m pip install –upgrade pip’ command.
ใจ่กจ็คบใใใพใใ
ใใใฏใฉใใใๆๅณใงใใ๏ผ
pipใฎๆดๆฐไฝๆฅญ๏ผใใกใคใซๆไฝ๏ผๆใซใขใฏใปในๆจฉ้ใงใจใฉใผใๅบใฆใใใฟใใใงใใญใ
ๆๆซใง็คบใใใฆใใ้ใใใpip install โupgrade pipใใงใฏใชใใpython -m pip install โupgrade pipใใงๅๅบฆๅฎ่กใใใฆใฟใฆใฏใใใใงใใใใใ