Intel® Distribution for Python*
Support and discussions for achieving faster Python* applications and core computational packages.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

where is numpy and scipy

Cheah_Wei_L_
Beginner
1,480 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
1,480 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

Cheah_Wei_L_
Beginner
1,480 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'

Ricardo_C_Intel
Employee
1,480 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

 

Cheah_Wei_L_
Beginner
1,480 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

Cheah_Wei_L_
Beginner
1,480 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

 

Ricardo_C_Intel
Employee
1,480 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

Reply