You have to install it using pip.

pip install pycountry

And then you can use it :)

Answer from Víctor López on Stack Overflow
🌐
PyPI
pypi.org › project › pycountry
pycountry · PyPI
... Tags country , subdivision , language , currency , iso , 3166 , 639 , 4217 , 15924 , 3166-1 , 3166-2 , 3166-3 ... Download the file for your platform. If you're not sure which to choose, learn more about installing ...
      » pip install pycountry
    
Published   Feb 17, 2026
Version   26.2.16
🌐
Anaconda.org
anaconda.org › conda-forge › pycountry
pycountry - conda-forge | Anaconda.org
Install pycountry with Anaconda.org. pycountry provides the ISO databases for the standards
🌐
PyTutorial
pytutorial.com › install-pycountry-in-python-easily
PyTutorial | Install pycountry in Python Easily
June 1, 2025 - pycountry gives access to ISO databases. It includes country names, languages, and currencies. It is useful for data validation and localization tasks. The easiest way to install pycountry is with pip.
🌐
PyTutorial
pytutorial.com › python-pycountry-understand-how-to-use-pycountry
PyTutorial | Python-pycountry | Understand How to Use pycountry
November 30, 2022 - In this article, we'll learn the most pycountry's methods with examples. To install pycountry via pip, run the command below:
🌐
piwheels
piwheels.org › project › pycountry
piwheels - pycountry
pip3 install pycountry · None · PyPI page · pypi.org/ project/ pycountry · Project JSON · piwheels.org/ project/ pycountry/ json · Versions · 64 · Files · 64 · Downloads · (all time) loading...
🌐
Pycountry
pycountry.com
PyCountry – My WordPress Blog
Search ISO data using codes, names, or structured identifiers. Get clean, consistent, and structured data output for use. Use results directly in validation, localization, or application logic. Install Pycountry from PyPI using your preferred Python package manager.
🌐
Anaconda
anaconda.org › hargup › pycountry
Pycountry
hargup/pycountry · Community · ISO country, subdivision, language, currency and script definitions and their translations · Overview · Files 2 · Labels 1 · Badges · Versions · 1.10 · To install this package, run one of the following: $conda install hargup::pycountry ·
Find elsewhere
🌐
GitHub
github.com › pycountry › pycountry
GitHub - pycountry/pycountry: A Python library to access ISO country, subdivision, language, currency and script definitions and their translations. · GitHub
>>> import gettext >>> german = gettext.translation('iso3166-1', pycountry.LOCALES_DIR, ... languages=['de']) >>> german.install() >>> _('Germany') 'Deutschland'
Starred by 964 users
Forked by 140 users
Languages   Python 90.8% | Makefile 8.9% | Nix 0.3%
🌐
GitHub
github.com › PEAT-AI › pycountry
GitHub - PEAT-AI/pycountry
Copy-paste the command ``` pip install -e git+https://github.com/PEAT-AI/pycountry.git#egg=pycountry ``` pycountry provides the ISO databases for the standards: 639-3 Languages 3166 Countries 3166-3 Deleted countries 3166-2 Subdivisions of countries ...
Author   PEAT-AI
🌐
PyPI
pypi.org › project › pycountry-convert
pycountry-convert · PyPI
pycountry-convert module is built upon Python 3 and has dependencies upon several Python modules available within Python Package Index PyPI. ... Travis CI testing both Python 2.7 and 3.6. ... Author: TUNE Inc. ... Download the file for your platform. If you're not sure which to choose, learn more about installing ...
      » pip install pycountry-convert
    
Published   Feb 18, 2018
Version   0.7.2
🌐
Arch Linux
archlinux.org › packages › extra › any › python-pycountry
Arch Linux - python-pycountry 24.6.1-5 (any)
python-installer (make) python-poetry-core (make) python-importlib-metadata (check) python-pytest (check) ibus-typing-booster · paperwork · streamlink · woob · python-pydantic-extra-types (optional) View the file list for python-pycountry · View the soname list for python-pycountry ·
🌐
Parseltongue
parseltongue.co.in › exploring-countries-with-the-pycountry-module-in-python
ParselTongue - Exploring Countries with the pycountry Module in Python
September 1, 2023 - Let us dive into the code. Installation · pip install pycountry · Listing countries · import pycountry countries = pycountry.countries for country in countries: print(country.name) Output ·
🌐
PyPI
pypi.org › project › pycountry-nopytest
pycountry-nopytest · PyPI
Download the file for your platform. If you're not sure which to choose, learn more about installing packages. pycountry-nopytest-0.16.dev0.tar.gz (7.4 MB view details)
      » pip install pycountry-nopytest
    
Published   Jul 10, 2013
Version   0.16.dev0
🌐
GitHub
github.com › pycountry
pycountry · GitHub
pycountry has one repository available. Follow their code on GitHub.
🌐
MacPorts
ports.macports.org › port › py-country
Install py-country on macOS with MacPorts
https://github.com/flyingcircusio/pycountry · py27-country · py310-country · py311-country · py312-country · py313-country · py314-country · py35-country · py36-country · py37-country · py38-country · py39-country · Details Add to my watchlist 0 · Quick Links: About · Statistics FAQ · Git Repository · Documentation · API · Issues · MacPorts · MacPorts Home · Install ...
🌐
GitHub
github.com › conda-forge › pycountry-feedstock
GitHub - conda-forge/pycountry-feedstock: A conda-smithy repository for pycountry.
Once the conda-forge channel has been enabled, pycountry can be installed with conda:
Forked by 6 users
🌐
PyPI
pypi.org › project › pycountry-un
pycountry-un · PyPI
April 18, 2020 - A simple package that provides lists of countries in the United Nation’s World Economic Situation and Prospects as sequences of Pycountry elements. First, you need to install it using pip install pycountry-un or your method of choice.
      » pip install pycountry-un
    
Published   Apr 18, 2020
Version   0.1.1
🌐
PyPI
pypi.org › project › pycountries
pycountries · PyPI
There is a great library pycountry, but it is incompatible with enums, for sure enums can be generated dynamically, but python does not work good with dynamic enums, for example, you can not inherit from enums, annotations will be broken, etc. pycountries solves these issues and more. Soon pycountries will be providing other ISO standards related to countries. python3.12 -m venv .venv source .venv/bin/activate pip install -r requirements.txt
      » pip install pycountries
    
Published   Sep 20, 2024
Version   1.2.1