Intel® Distribution for Python*
Engage in discussions with community peers related to Python* applications and core computational packages.

where is numpy and scipy

Cheah_Wei_L_
Beginner
3,004 Views

new to python

how to import numpy and scipy which are installed by the installer?

 

i got error calling the command import numpy
 

0 Kudos
6 Replies
Ricardo_C_Intel
Employee
3,004 Views

Hello, thank you for downloading the Intel Distribution for Python. 
What operating system are you using?
In order to be able to import any module that comes with the distribution, you need to make sure the directory for python and Scripts are in your PATH. Please see the Release Notes found in this forum and see the section "Installing this release".

If you still can't import NumPy after adding the Installation and Scripts directories to your PATH, please let me know.

Thanks

0 Kudos
Cheah_Wei_L_
Beginner
3,004 Views

i am using windows 8.1 64bit on i7

i have followed the instructions in release notes to add to path (both user and system)

i have restarted my laptop

but i still get error

 

>>> import numpy
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    import numpy
ImportError: No module named 'numpy'

0 Kudos
Ricardo_C_Intel
Employee
3,005 Views

How did you set the PATH?

If you set it through a command line by typing 'set PATH=<install_Directory>;%PATH%', then this will be only temporary and disappears once you exit the window where you run the command. If you set it on the environment variables settings on Windows, then you should make sure you are adding the install directories at the beginning of the PATH so it takes precedence over other Python installations on your system.
Remember you need to add the python and Scripts directory to your PATH.

Let me know if this helps.

Ricardo

 

0 Kudos
Cheah_Wei_L_
Beginner
3,005 Views

both my user and systems path are permanently set with these values

C:\Program Files\Intel\python35;C:\Program Files\Intel\python35\Scripts

i set them using

 Run the following to add to the User PATH: python Scripts\intelsetup.py --path
 Run the following to add to the System PATH: python Scripts\intelsetup.py –syspath

0 Kudos
Cheah_Wei_L_
Beginner
3,005 Views

i have found the solution

i have to start command prompt with administrator priviledge, from there start python

note: running python as administrator (right click on the start menu python 3.5 (64 bit) doesn't work

 

0 Kudos
Ricardo_C_Intel
Employee
3,005 Views

Did you install python with user or system option?
It seems to be a permission issue because you can run it as administrator.

Thanks

0 Kudos
Reply