-1

I'm working on a project for which I need to a module. I want to know how to import some other module in python that is not installed.

When I write

import xaut

It gives error no module named xaut.

I have xaut-0.4.5 that I downloaded from following link. Please help me how to use it.

Paul Rooney
  • 20,879
  • 9
  • 40
  • 61
  • no i am not able to install.Please guide me how to install – Ali Subhan Kazmi May 18 '15 at 06:17
  • you have to add it to the python path, did you download/install this python module with pip or did you do it manually? Id be happy to write up an answer for how to add a python module to your python path if needed. Cheers. – Andrew Malta May 18 '15 at 06:19
  • how to add it to python path??I tried to run makefile using gnuwin32 but couldn't . – Ali Subhan Kazmi May 18 '15 at 06:27
  • possible duplicate of [How to add to the pythonpath in windows 7?](http://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-7) – Andrew Malta May 18 '15 at 06:31

2 Answers2

0

Well I think following will help

  1. Extract your zip file

  2. Open the command line (a linux terminal or cmd on windows). I am on linux so I have a terminal.

  3. Now enter the directory that you have extracted.

    enter image description here

  4. In it is a directory "python" cd into it. enter image description here

  5. If you run the ls command (if on windows run dir) you will see that in this directory there is a script "setup.py". We need to execute it for installation.

    enter image description here

  6. Execute this script by giving command python setup.py install

This will hopefully install it and then you would be able to import it. Basically you have only downloaded the package. To make a package work you also need to install it. So when you download a package always search for a setup.py file.

Community
  • 1
  • 1
zkk
  • 207
  • 1
  • 8
-1

This is certainly a duplicate question. You can look up how to add a python module to the path in windows.

here is an example How to add to the pythonpath in windows 7?

Community
  • 1
  • 1
Andrew Malta
  • 850
  • 5
  • 15