You have to install it using pip.
pip install pycountry
And then you can use it :)
Answer from Víctor López on Stack OverflowPyPI
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
Top answer 1 of 3
7
You have to install it using pip.
pip install pycountry
And then you can use it :)
2 of 3
0
I had the same problem and looked thru several articles and youtube videos but none got my pycharm fixed to recognize the pycountry module until I tried executing the program in the pycharm IDE terminal and then the pycharm EDE started to recognize it.
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 ·
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%
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
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 ·
Anaconda.org
anaconda.org › anaconda › pycountry
Pycountry | Anaconda.org
Documentation: https://github.... v24.6.1 · osx-64 v24.6.1 · win-64 v24.6.1 · To install this package run one of the following: conda install anaconda::pycountry...
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 ...
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
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
Cern
simple-repository.app.cern.ch › project › pycountry
pycountry · Python Simple Repository Browser
pip install pycountry ·   Latest version Released: Feb 17, 2026 · ISO country, subdivision, language, currency and script definitions and their translations · Navigation Description Releases Files Dependencies · Project Links Changelog Issues Source ·