|
[Sponsors] |
[Other] How to install numpy on CentOS/RHEL 6.x? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 30, 2018, 09:15 |
How to install numpy on CentOS/RHEL 6.x?
|
#1 |
New Member
Vania
Join Date: Dec 2016
Posts: 13
Rep Power: 9 |
Dear all,
I have a problem using Python within OpenFOAM. It is installed within OpenFOAM (verified via opening terminal and typing "python" - version 2.6.6 btw) but does not recognize the packages numpy, etc : bash-4.1$ python Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named numpy So the problem arises when I run some case that has to run a Python script : bash-4.1$ bash runCasePiston blockMesh meshing... Preparing 0 folder... Setting the fields... Creating piston wavemaker movement... Traceback (most recent call last): File "pistonWaveGen.py", line 3, in <module> import numpy as np ImportError: No module named numpy I manage to run the python script outside OpenFOAM but this is not a practical nor wishful solution. I do not want to mess much with my Python installations, as they are bounded to work with other codes. So my question is how to solve this issue, concerning the Python packages recognition, within OpenFOAM? Hope I was clear. Looking forward for your help! Thank you in advance. |
|
May 31, 2018, 09:30 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: You will still need to install numpy, but you can choose to either install it at the system-level or install it as a normal user: https://superuser.com/questions/4656...os-6-2-64-bit/
Due to numpy being a fairly standard Python package, I believe you can install it without interfering with other Python packages and current installation.
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Install OpenFOAM without admin right | OpenFoamlove | OpenFOAM Installation | 1 | December 31, 2017 12:45 |
error make SU2 4.0.1 | Heathckliff | SU2 Installation | 2 | November 9, 2015 06:48 |
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 | kobayashi | OpenFOAM Community Contributions | 2 | January 5, 2014 18:33 |
unable to install openfoam 1.7 using apt-get | maazhmd | OpenFOAM Installation | 7 | July 24, 2011 12:18 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 15:43 |