Skip to content

Install

Claudio Sparpaglione edited this page Jan 3, 2019 · 5 revisions

You can install PyOWM in multiple ways

Universal installer: pip

As easy as:

pip install pyowm

Install from source with setuptools

You can install from source using setuptools: either download a release from GitHub or just take the latest main branch), then:

$ unzip <zip archive>   # or tar -xzf <tar.gz archive>
$ cd pyowm-x.y.z
$ python setup.py install

The .egg will be installed into the system-dependent Python libraries folder:

C:\PythonXY\Lib\site-packages            # Windows
/usr/local/lib/pythonX.Y/dist-packages   # Ubuntu
/usr/local/lib/pythonX.Y/dist-packages   # MacOS 10.5.4

Platform-specific installations

Windows

Windows users can get an exe installer for PyOWM versions on the Python Package Index

On ArchLinux with Yaourt

Run:

Yaourt -S python2-owm  # Python 2.7 (https://aur.archlinux.org/packages/python-owm)
Yaourt -S python-owm   # Python 3.x (https://aur.archlinux.org/packages/python2-owm)

On OpenSuse with YaST/Zypper

Run:

zypper install python-pyowm