نصب و راه‌اندازی پایتون - آیزی لِرن | izlearn
پس از فشردن دکمه Enter، صفحه‌ای سیاه‌رنگ تحت عنوان Command Prompt یا Terminal برای شما ظاهر خواهد شد. در پنجره ایجادشده کافیه تا دستور متنیِ ...
نسخه پایتون 3.9.5
در قدم اوّل نیاز هست تا IDLE پایتون دانلود و نصب شود. با استفاده از IDLE پایتون قادر هستیم تا کُدهای پایتون خود را در محیطش بنویسم و اجراء نماییم. برای نصب IDLE پایتون کافیست وارد وب‌سایت رسمیِ پایتون به آدرس python.org شویم. پس از ورود به صفحه اصلی، در نوار فهرست سایت بر روی گزینه Downloads کلیک می‌کنیم. پس از کلیک بر روی این زبانه، به صفحه دانلود نسخه‌های مختلف پایتون وارد می‌شویم. نسخه‌های مختلف پایتون در یک جدول قرار داده‌شده‌است. با انتخاب نسخه موردنظر و کلیک بر روی لینک Download، به صفحه دانلودِ نسخه انتخاب‌شده می‌روید و در آن‌جا می‌توانید جهت دانلود اقدام نمایید. نسخه‌ای که در این دوره استفاده شده‌است، <anchor>نسخه پایتون 3.9.5</anchor> است. پیشنهاد می‌شود که برای جلوگیری از خطاهای احتمالی، شما نیز همین نسخه را نصب نمایید.
Python Release Python 3.9.5 | Python.org
Python Release Python 3.9.5 \| Python.org

**Notice:** While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.

[Skip to content](#content "Skip to content")

[▼ Close](#python-network)

- [Python](/ "The Python Programming Language")
- [PSF](https://www.python.org/psf/ "The Python Software Foundation")
- [Docs](https://docs.python.org "Python Documentation")
- [PyPI](https://pypi.org/ "Python Package Index")
- [Jobs](/jobs/ "Python Job Board")
- [Community](/community-landing/)

[▲ The Python Network](#top)

# [![python™](/static/img/python-logo.png)](/)

[Donate](https://psfmember.org/civicrm/contribute/transact?reset=1&id=2)

[≡ Menu](#site-map)Search This Site
GO


- **A A**  - [Smaller](javascript:; "Make Text Smaller")
  - [Larger](javascript:; "Make Text Larger")
  - [Reset](javascript:; "Reset any font size changes I have made")

- Socialize  - [LinkedIn](https://www.linkedin.com/company/python-software-foundation/)
  - [Mastodon](https://fosstodon.org/@ThePSF)
  - [Chat on IRC](/community/irc/)
  - [Twitter](https://twitter.com/ThePSF)

- [About](/about/ "")  - [Applications](/about/apps/ "")
  - [Quotes](/about/quotes/ "")
  - [Getting Started](/about/gettingstarted/ "")
  - [Help](/about/help/ "")
  - [Python Brochure](http://brochure.getpython.info/ "")
- [Downloads](/downloads/ "")  - [All releases](/downloads/ "")
  - [Source code](/downloads/source/ "")
  - [Windows](/downloads/windows/ "")
  - [macOS](/downloads/macos/ "")
  - [Other Platforms](/download/other/ "")
  - [License](https://docs.python.org/3/license.html "")
  - [Alternative Implementations](/download/alternatives "")
- [Documentation](/doc/ "")  - [Docs](/doc/ "")
  - [Audio/Visual Talks](/doc/av "")
  - [Beginner's Guide](https://wiki.python.org/moin/BeginnersGuide "")
  - [Developer's Guide](https://devguide.python.org/ "")
  - [FAQ](https://docs.python.org/faq/ "")
  - [Non-English Docs](http://wiki.python.org/moin/Languages "")
  - [PEP Index](https://peps.python.org "")
  - [Python Books](https://wiki.python.org/moin/PythonBooks "")
  - [Python Essays](/doc/essays/ "")
- [Community](/community/ "")  - [Diversity](/community/diversity/ "")
  - [Mailing Lists](/community/lists/ "")
  - [IRC](/community/irc/ "")
  - [Forums](/community/forums/ "")
  - [PSF Annual Impact Report](/psf/annual-report/2021/ "")
  - [Python Conferences](/community/workshops/ "")
  - [Special Interest Groups](/community/sigs/ "")
  - [Python Logo](/community/logos/ "")
  - [Python Wiki](https://wiki.python.org/moin/ "")
  - [Code of Conduct](/psf/conduct/ "")
  - [Community Awards](/community/awards "")
  - [Get Involved](/psf/get-involved/ "")
  - [Shared Stories](/psf/community-stories/ "")
- [Success Stories](/success-stories/ "success-stories")  - [Arts](/success-stories/category/arts/ "")
  - [Business](/success-stories/category/business/ "")
  - [Education](/success-stories/category/education/ "")
  - [Engineering](/success-stories/category/engineering/ "")
  - [Government](/success-stories/category/government/ "")
  - [Scientific](/success-stories/category/scientific/ "")
  - [Software Development](/success-stories/category/software-development/ "")
- [News](/blogs/ "News from around the Python world")  - [Python News](/blogs/ "Python Insider Blog Posts")
  - [PSF Newsletter](/psf/newsletter/ "Python Software Foundation Newsletter")
  - [PSF News](http://pyfound.blogspot.com/ "PSF Blog")
  - [PyCon US News](http://pycon.blogspot.com/ "PyCon Blog")
  - [News from the Community](http://planetpython.org/ "Planet Python")
- [Events](/events/ "")  - [Python Events](/events/python-events/ "")
  - [User Group Events](/events/python-user-group/ "")
  - [Python Events Archive](/events/python-events/past/ "")
  - [User Group Events Archive](/events/python-user-group/past/ "")
  - [Submit an Event](https://wiki.python.org/moin/PythonEventsCalendar#Submitting_an_Event "")

# Python 3.9.5

**Release Date:** May 3, 2021

## This is the fifth maintenance release of Python 3.9

**Note:** The release you're looking at is Python 3.9.5, a **bugfix release** for the legacy 3.9 series. _Python 3.11_ is now the latest feature release series of Python 3. [Get the latest release of 3.11.x here](/downloads/).

There's been 111 commits since 3.9.4 which is a similar amount compared to 3.8 at the same stage of the release cycle. See the [changelog](https://docs.python.org/release/3.9.5/whatsnew/changelog.html) for details.

## Major new features of the 3.9 series, compared to 3.8

Some of the new major new features and changes in Python 3.9 are:

- [PEP 573](https://www.python.org/dev/peps/pep-0573/), Module State Access from C Extension Methods
- [PEP 584](https://www.python.org/dev/peps/pep-0584/), Union Operators in `dict`
- [PEP 585](https://www.python.org/dev/peps/pep-0585/), Type Hinting Generics In Standard Collections
- [PEP 593](https://www.python.org/dev/peps/pep-0593/), Flexible function and variable annotations
- [PEP 602](https://www.python.org/dev/peps/pep-0602/), Python adopts a stable annual release cadence
- [PEP 614](https://www.python.org/dev/peps/pep-0614/), Relaxing Grammar Restrictions On Decorators
- [PEP 615](https://www.python.org/dev/peps/pep-0615/), Support for the IANA Time Zone Database in the Standard Library
- [PEP 616](https://www.python.org/dev/peps/pep-0616/), String methods to remove prefixes and suffixes
- [PEP 617](https://www.python.org/dev/peps/pep-0617/), New PEG parser for CPython
- [BPO 38379](https://bugs.python.org/issue38379), garbage collection does not block on resurrected objects;
- [BPO 38692](https://bugs.python.org/issue38692), os.pidfd\_open added that allows process management without races and signals;
- [BPO 39926](https://bugs.python.org/issue39926), Unicode support updated to version 13.0.0;
- [BPO 1635741](https://bugs.python.org/issue1635741), when Python is initialized multiple times in the same process, it does not leak memory anymore;
- A number of Python builtins (range, tuple, set, frozenset, list, dict) are now sped up using [PEP 590](https://www.python.org/dev/peps/pep-0590) vectorcall;
- A number of Python modules (\_abc, audioop, \_bz2, \_codecs, \_contextvars, \_crypt, \_functools, \_json, \_locale, operator, resource, time, \_weakref) now use multiphase initialization as defined by [PEP 489](https://www.python.org/dev/peps/pep-0489/);
- A number of standard library modules (audioop, ast, grp, \_hashlib, pwd, \_posixsubprocess, random, select, struct, termios, zlib) are now using the stable ABI defined by [PEP 384](https://www.python.org/dev/peps/pep-0384/).

You can find a more comprehensive list in this release's " [What's New](https://docs.python.org/release/3.9.0/whatsnew/3.9.html)" document.

## More resources

- [Online Documentation](https://docs.python.org/3.9/)
- [PEP 596](https://www.python.org/dev/peps/pep-0596/), 3.9 Release Schedule
- Report bugs at [https://bugs.python.org](https://bugs.python.org).
- [Help fund Python and its community](/psf/donations/).

## And Now for Something Completely Different

**Mr. Praline ( [John Cleese](https://montypython.fandom.com/wiki/Dead_Parrot)):** I wish to complain, British-Railways Person.

**Attendant (Terry Jones):** I DON'T HAVE TO DO THIS JOB, YOU KNOW!!!

**Mr. Praline:** I beg your pardon...?

**Attendant:** I'm a qualified brain surgeon! I only do this job because I like being my own boss!

**Mr. Praline:** Excuse me, this is irrelevant, isn't it?

**Attendant:** Yeah, well it's not easy to pad these python files out to 150 lines, you know.

**Mr. Praline:** Well, I wish to complain. I got on the Bolton train and found myself deposited here in Ipswitch.

**Attendant:** No, this is Bolton.

**Mr. Praline:** _(to the camera)_ The pet shop man's brother was LYING!

**Attendant:** Can't blame British Rail for _that_.

[Full Changelog](https://docs.python.org/release/3.9.5/whatsnew/changelog.html)

# Files

VersionOperating SystemDescriptionMD5 SumFile SizeGPG[Gzipped source tarball](https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz)Source release364158b3113cf8ac8db7868ce40ebc7b24.4 MB[SIG](https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz.asc)[XZ compressed source tarball](https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tar.xz)Source release71f7ada6bec9cdbf4538adc326120cfd18.2 MB[SIG](https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tar.xz.asc)[macOS 64-bit Intel installer](https://www.python.org/ftp/python/3.9.5/python-3.9.5-macosx10.9.pkg)macOSfor macOS 10.9 and later870e851eef2c6712239e0b97ea5bf40728.5 MB[SIG](https://www.python.org/ftp/python/3.9.5/python-3.9.5-macosx10.9.pkg.asc)[macOS 64-bit universal2 installer](https://www.python.org/ftp/python/3.9.5/python-3.9.5-macos11.pkg)macOSfor macOS 10.9 and later, including macOS 11 Big Sur on Apple Silicon59aedbc04df8ee0547d3042270e9aa5736.0 MB[SIG](https://www.python.org/ftp/python/3.9.5/python-3.9.5-macos11.pkg.asc)[Windows installer (64-bit)](https://www.python.org/ftp/python/3.9.5/python-3.9.5-amd64.exe)WindowsRecommended53a354a15baed952ea9519a7f4d87c3f27.1 MB[SIG](https://www.python.org/ftp/python/3.9.5/python-3.9.5-amd64.exe.asc)[Windows installer (32-bit)](https://www.python.org/ftp/python/3.9.5/python-3.9.5.exe)Windowsb29b19a94bbe498808e5e12c51625dd826.0 MB[SIG](https://www.python.org/ftp/python/3.9.5/python-3.9.5.exe.asc)[Windows help file](https://www.python.org/ftp/python/3.9.5/python395.chm)Windowsb311674bd26a602011d8baea2381df9e8.5 MB[SIG](https://www.python.org/ftp/python/3.9.5/python395.chm.asc)[Windows embeddable package (64-bit)](https://www.python.org/ftp/python/3.9.5/python-3.9.5-embed-amd64.zip)Windows0b3a4a9ae9d319885eade3ac5aca7d178.0 MB[SIG](https://www.python.org/ftp/python/3.9.5/python-3.9.5-embed-amd64.zip.asc)[Windows embeddable package (32-bit)](https://www.python.org/ftp/python/3.9.5/python-3.9.5-embed-win32.zip)Windowscacf28418ae39704743fa790d404e6bb7.2 MB[SIG](https://www.python.org/ftp/python/3.9.5/python-3.9.5-embed-win32.zip.asc)

[▲ Back to Top](#python-network)

- [About](/about/)  - [Applications](/about/apps/ "")
  - [Quotes](/about/quotes/ "")
  - [Getting Started](/about/gettingstarted/ "")
  - [Help](/about/help/ "")
  - [Python Brochure](http://brochure.getpython.info/ "")
- [Downloads](/downloads/)  - [All releases](/downloads/ "")
  - [Source code](/downloads/source/ "")
  - [Windows](/downloads/windows/ "")
  - [macOS](/downloads/macos/ "")
  - [Other Platforms](/download/other/ "")
  - [License](https://docs.python.org/3/license.html "")
  - [Alternative Implementations](/download/alternatives "")
- [Documentation](/doc/)  - [Docs](/doc/ "")
  - [Audio/Visual Talks](/doc/av "")
  - [Beginner's Guide](https://wiki.python.org/moin/BeginnersGuide "")
  - [Developer's Guide](https://devguide.python.org/ "")
  - [FAQ](https://docs.python.org/faq/ "")
  - [Non-English Docs](http://wiki.python.org/moin/Languages "")
  - [PEP Index](https://peps.python.org "")
  - [Python Books](https://wiki.python.org/moin/PythonBooks "")
  - [Python Essays](/doc/essays/ "")
- [Community](/community/)  - [Diversity](/community/diversity/ "")
  - [Mailing Lists](/community/lists/ "")
  - [IRC](/community/irc/ "")
  - [Forums](/community/forums/ "")
  - [PSF Annual Impact Report](/psf/annual-report/2021/ "")
  - [Python Conferences](/community/workshops/ "")
  - [Special Interest Groups](/community/sigs/ "")
  - [Python Logo](/community/logos/ "")
  - [Python Wiki](https://wiki.python.org/moin/ "")
  - [Code of Conduct](/psf/conduct/ "")
  - [Community Awards](/community/awards "")
  - [Get Involved](/psf/get-involved/ "")
  - [Shared Stories](/psf/community-stories/ "")
- [Success Stories](/success-stories/ "success-stories")  - [Arts](/success-stories/category/arts/ "")
  - [Business](/success-stories/category/business/ "")
  - [Education](/success-stories/category/education/ "")
  - [Engineering](/success-stories/category/engineering/ "")
  - [Government](/success-stories/category/government/ "")
  - [Scientific](/success-stories/category/scientific/ "")
  - [Software Development](/success-stories/category/software-development/ "")
- [News](/blogs/ "News from around the Python world")  - [Python News](/blogs/ "Python Insider Blog Posts")
  - [PSF Newsletter](/psf/newsletter/ "Python Software Foundation Newsletter")
  - [PSF News](http://pyfound.blogspot.com/ "PSF Blog")
  - [PyCon US News](http://pycon.blogspot.com/ "PyCon Blog")
  - [News from the Community](http://planetpython.org/ "Planet Python")
- [Events](/events/)  - [Python Events](/events/python-events/ "")
  - [User Group Events](/events/python-user-group/ "")
  - [Python Events Archive](/events/python-events/past/ "")
  - [User Group Events Archive](/events/python-user-group/past/ "")
  - [Submit an Event](https://wiki.python.org/moin/PythonEventsCalendar#Submitting_an_Event "")
- [Contributing](/dev/)  - [Developer's Guide](https://devguide.python.org/ "")
  - [Issue Tracker](https://github.com/python/cpython/issues "")
  - [python-dev list](https://mail.python.org/mailman/listinfo/python-dev "")
  - [Core Mentorship](/dev/core-mentorship/ "")
  - [Report a Security Issue](/dev/security/ "")

[▲ Back to Top](#python-network)

- [Help & General Contact](/about/help/)
- [Diversity Initiatives](/community/diversity/)
- [Submit Website Bug](https://github.com/python/pythondotorg/issues)
- [Status](https://status.python.org/)

Copyright ©2001-2024.[Python Software Foundation](/psf-landing/)[Legal Statements](/about/legal/)[Privacy Policy](/privacy/)