I know how to import modules however I don't know how to get a module from the internet.
            Asked
            
        
        
            Active
            
        
            Viewed 68 times
        
    -2
            
            
        - 
                    2You should use `pip` – Padraic Cunningham Apr 24 '15 at 17:44
1 Answers
0
            
            
        It depends on the module. Most times the easiest way is to use pip install <module> in the cmd. Another option is downloading the module and if it has a setup.py file in it, do python setup.py install from within the module's directory.
 
    
    
        Ella Sharakanski
        
- 2,683
- 3
- 27
- 47
- 
                    Which module do you want to install? You need its name and then just write the command in the cmd – Ella Sharakanski Apr 24 '15 at 18:31
- 
                    I've tried installing `numpy` but it says `install` is invalid syntax – foxterfox Apr 25 '15 at 07:52
- 
                    I have Python 3.4 (I also have Python 2.7 but I wasn't using it) with IDLE. In the Python 3.4 folder in the start bar I selected the Python 3.4 command line. I then typed `pip install numpy` and nothing else – foxterfox Apr 25 '15 at 15:33
- 
                    You should write the command in the cmd, not in the python command line. To open the cmd using the keyboard press winkey+r and then type cmd and press enter. Alternatively, click the start button, type "cmd" and open the program, It should look like a black console. – Ella Sharakanski Apr 25 '15 at 16:18
- 
                    It says `'pip' is not recognised as an internal or external command, operable program or batch file` – foxterfox Apr 26 '15 at 07:56
- 
                    See how to install pip: http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows – Ella Sharakanski Apr 26 '15 at 08:34
- 
                    I reinstalled `pip` and tried it again but it still has the same error – foxterfox Apr 26 '15 at 09:14
- 
                    You added it to the path as the instructions say? If so, you can ask a new question since you have a different problem now – Ella Sharakanski Apr 26 '15 at 17:45
