Python Forum
How to download and install python modules? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to download and install python modules? (/thread-2479.html)



How to download and install python modules? - 20AJ0931 - Mar-20-2017

I am new to python and only know basic programming. I want to start working with modules. Especially the 'wmi' module. How do I download and install it.


RE: How to download and install python modules? - metulburr - Mar-20-2017

python comes with pip, so use that
pip install wmi
then test with 
import wmi



RE: How to download and install python modules? - Larz60+ - Mar-21-2017

Also, to browse modules that are available (searching by subject), visit: https://pypi.python.org/pypi
And you can find wheels here: http://www.lfd.uci.edu/~gohlke/pythonlibs/

to install from a wheel, download the wheel to your favorite directory,
change to that directory and use
pip install wheel name
Wheels are named (on gohike) like:
  • ad3‑2.0.2‑cp27‑cp27m‑win32.whl
  • ad3‑2.0.2‑cp27‑cp27m‑win_amd64.whl
  • ad3‑2.0.2‑cp34‑cp34m‑win32.whl
  • ad3‑2.0.2‑cp34‑cp34m‑win_amd64.whl
  • ad3‑2.0.2‑cp35‑cp35m‑win32.whl
  • ad3‑2.0.2‑cp35‑cp35m‑win_amd64.whl
The number after the cp is the python version number
then the 32 and 64 are for 32 bit and 64 bit os.


RE: How to download and install python modules? - hsunteik - Mar-21-2017

download it from the internet and install it or use pip


RE: How to download and install python modules? - Larz60+ - Mar-21-2017

I'd try to use pip first, directly from the net.
If there's any problem (most work ok), and there is a wheel on gohike,
download that next and use pip to install

finally, you can download the package, find the setup.py file and run:
python setup.py install