Installing NumPy
Procedure
- Use PuTTY to log in to the server as the root user.
- Use an SFTP tool to upload the NumPy installation package to the /path/to/PYTHON directory on the server.
- Run the following commands to set the environment variables:
export PATH=/path/to/PYTHON/bin:$PATH export LD_LIBRARY_PATH=/path/to/PYTHON/lib:$LD_LIBRARY_PATH
- Run the following command to decompress the installation package and go to the installation directory:
unzip numpy-1.19.4.zip && cd numpy-1.19.4
- Run the following command to perform the compilation and installation:
python3 setup.py build && python3 setup.py install
Parent topic: Configuring the Compilation Environment