- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to build numpy and scipy on 64-bit Ubuntu 12.04 with Intel MKL.
I have installed all the prerequisites. The INTEL C++ complier and the Fortran compiler verision are all 2011 sp1 10.319 and MKL is the version within it.
I am following the installation instruction fromINTEL's website.
I have successfully build and installed numpy.
When building scipy I encounted the problem as follows:
error: could note create '/usr/local/lib/python2.7/dist-packages/scipy': Permission denied
when I try to put sudo in front of the install line, I got:
numpy.distutils.fcompiler.CompilerNotFound: intelem: f90 nor f77
Could anyone help me?
Thanks!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you mean you got the error at the step with the command
Compile and install SciPy with the Intel Compilers: (On 64-bit platforms replace "intel" with "intelem")
sodu $pythonsetup.pyconfig--compiler=intel--fcompiler=intelbuild_clib--compiler=intel--fcompiler=intelbuild_ext--compiler=intel--fcompiler=intelinstall
Best Regards,
Ying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--Vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On Xubuntu 12.10, this issue is solved by linking ifort and icc in /usr/bin. Apparently, as @Pierre noticed, these files can't be found by the root account when you do "sudo python setup.py config ..." since they're usually installed to /opt. But the root account does look at /usr/bin, so put the links there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As your sudo command opens a new shell, you would need to set the same compiler environment in that shell as in your user shell, in order to build normally.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I summarize the issue here so more users may clear about the problem:
The error "Permission denied" because non-super user. if use
>sudo python setup.py config --compiler=intelem build_clib --compiler=intelem build_ext --compiler=intelem install
icc/ifort environment can be set up because sudo don't recognize the 'source source /opt/intel/composer_xe_2013_sp1.2.144/bin/iccvars.sh intel64".
So user can use root to build the numpy and scipy if possible.
Or either Pierre's solution
cipy should be done in two steps:
First to build (with intelem instead of intel for 64 bits processors):
python setup.py config --compiler=intel build_clib --compiler=intel build_ext --compiler=intel
Then install:
sudo python setup.py install
Same for Scipy.
or Ethan's solution:
inking ifort and icc in /usr/bin
Best Regards,
Ying
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page