"cffi" dependencies module issue while installing "pysftp" module in python Oracle Solaris 11.4 - cffi

We have tried to install "pysftp" module in Solaris 11.4 with python, I have used to install by using "pip" module in python 3.7 version solaris 11.4 os version. we are able to install other packages without any issue. while trying to install dependencies are failing to install.
# python -m pip install pysftp==0.2.9
*Collecting pysftp==0.2.9
Using cached pysftp-0.2.9.tar.gz (25 kB)
Preparing metadata (setup.py) ... done
Collecting paramiko>=1.17
Using cached paramiko-2.10.2-py2.py3-none-any.whl (211 kB)
Collecting bcrypt>=3.1.3
Using cached bcrypt-3.2.0.tar.gz (42 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [116 lines of output]
Collecting setuptools>=40.8.0
Using cached setuptools-60.9.3-py3-none-any.whl (1.1 MB)
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting cffi>=1.1
Using cached cffi-1.15.0.tar.gz (484 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py): started
Building wheel for cffi (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [36 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.solaris-2.11-sun4v.64bit-3.7
creating build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/__init__.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/api.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/backend_ctypes.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/cffi_opcode.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/commontypes.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/cparser.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/error.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/ffiplatform.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/lock.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/model.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/pkgconfig.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/recompiler.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/setuptools_ext.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/vengine_cpy.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/vengine_gen.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/verifier.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/_cffi_include.h -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/parse_c_type.h -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/_embedding.h -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/_cffi_errors.h -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.solaris-2.11-sun4v.64bit-3.7
creating build/temp.solaris-2.11-sun4v.64bit-3.7/c
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -m64 -O3 -mno-app-regs -ffile-prefix-map=..=. -O2 -fPIC -DPIC -O3 -D_REENTRANT -m64 -O3 -mno-app-regs -ffile-prefix-map=..=. -O2 -fPIC -DPIC -O3 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.solaris-2.11-sun4v.64bit-3.7/c/_cffi_backend.o
c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
15 | #include <ffi.h>
| ^~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: wheel, setuptools, pycparser, cffi
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'error'
error: subprocess-exited-with-error
× Running setup.py install for cffi did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
running install
/usr/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
creating build
creating build/lib.solaris-2.11-sun4v.64bit-3.7
creating build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/__init__.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/api.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/backend_ctypes.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/cffi_opcode.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/commontypes.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/cparser.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/error.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/ffiplatform.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/lock.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/model.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/pkgconfig.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/recompiler.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/setuptools_ext.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/vengine_cpy.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/vengine_gen.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/verifier.py -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/_cffi_include.h -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/parse_c_type.h -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/_embedding.h -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
copying cffi/_cffi_errors.h -> build/lib.solaris-2.11-sun4v.64bit-3.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.solaris-2.11-sun4v.64bit-3.7
creating build/temp.solaris-2.11-sun4v.64bit-3.7/c
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -m64 -O3 -mno-app-regs -ffile-prefix-map=..=. -O2 -fPIC -DPIC -O3 -D_REENTRANT -m64 -O3 -mno-app-regs -ffile-prefix-map=..=. -O2 -fPIC -DPIC -O3 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.solaris-2.11-sun4v.64bit-3.7/c/_cffi_backend.o
c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
15 | #include <ffi.h>
| ^~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> cffi
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.*
Thanks in advance, plz help !!

Related

Pip3 is not working Python 3.10 for pandas installation

I am trying to install pandas library for python with pip but I get this error. I don't understand how to fix, can someone help me?
pi#raspberrypi:~/Desktop $ pip3 install pandas
Collecting pandas==1.3.0 Using cached pandas-1.3.0.tar.gz (4.7 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [1350 lines of output]
[...] 1000 lines of stuff
rgument is of type ‘npy_longdouble *’ {aka ‘double *’}
__MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr)) __nonnull ((2));
^
error: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall
-fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_CBLAS -DNO_ATLAS_INFO=-1 -Ibuild/src.linux-armv7l-3.10/numpy/core/src/umath -Ibuild/src.linux-armv7l-3.10/numpy/core/src/npymath -Ibuild/src.linux-armv7l-3.10/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-armv7l-3.10/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/include/python3.10 -Ibuild/src.linux-armv7l-3.10/numpy/core/src/common -Ibuild/src.linux-armv7l-3.10/numpy/core/src/npymath -c build/src.linux-armv7l-3.10/numpy/core/src/multiarray/scalartypes.c -o build/temp.linux-armv7l-3.10/build/src.linux-armv7l-3.10/numpy/core/src/multiarray/scalartypes.o -MMD -MF build/temp.linux-armv7l-3.10/build/src.linux-armv7l-3.10/numpy/core/src/multiarray/scalartypes.o.d -std=c99" failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Did you try to install numpy first in case you had an incompatible version?
pip install numpy
Try using the below code instead of pip3 install pandas
pip install pandas
or
pip install pandas=1.4.4

Installing tf-models-official on Windows 10

I'm trying to install tf-models-official on a PC with Windows 10.
When I run pip install tf-models-official on the command prompt, I get the following error
Building wheel for pycocotools (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\iavta\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\iavta\\AppData\\Local\\Temp\\pip-install-0twx2hmy\\pycocotools_ebdc747cefa04c81a8aab51eebf9fe53\\setup.py'"'"'; __file__='"'"'C:\\Users\\iavta\\AppData\\Local\\Temp\\pip-install-0twx2hmy\\pycocotools_ebdc747cefa04c81a8aab51eebf9fe53\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\iavta\AppData\Local\Temp\pip-wheel-60i3880o'
cwd: C:\Users\iavta\AppData\Local\Temp\pip-install-0twx2hmy\pycocotools_ebdc747cefa04c81a8aab51eebf9fe53\
Complete output (16 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\pycocotools
copying pycocotools\coco.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\cocoeval.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\mask.py -> build\lib.win-amd64-3.8\pycocotools
copying pycocotools\__init__.py -> build\lib.win-amd64-3.8\pycocotools
running build_ext
cythoning pycocotools/_mask.pyx to pycocotools\_mask.c
C:\Users\iavta\anaconda3\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\iavta\AppData\Local\Temp\pip-install-0twx2hmy\pycocotools_ebdc747cefa04c81a8aab51eebf9fe53\pycocotools\_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pycocotools._mask' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for pycocotools
Running setup.py clean for pycocotools
Successfully built termcolor
Failed to build pycocotools
I've already done pip install pycocotools-windows and I had no problems whatsoever during installation, and according to Vision Studio Installer, I have Visual Studio 2019 version 16.11.3 already installed. So, I have no idea why they ask me for Microsoft Visual C++ 14.0 or greater.
I solved the annoying "failed building wheel for pycocotools" issue on windows 10 anaconda (python=3.9) by:
Uninstall Visual Studio 2019;
Uninstall all Visual C++ Redistributable (2015-2019, 2013, 2012, etc.);
Install Visual Studio 2022, and tick Desktop development with C++.
Activate the new virtual environment, and run "pip install tf-models-official".

Building tensorflow 1.10 succeeded but package installation fails

I try to build tensorflow 1.10 with cuda from a python3 virtual environment :
./configure succeeded
first step build with bazel succeeded (with the necessity to install additional things)
$ bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
At first time the build failed:
import keras_applications
ModuleNotFoundError: No module named 'keras_applications'
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 9114.151s, Critical Path: 335.72s
INFO: 6696 processes: 6696 local.
FAILED: Build did NOT complete successfully
But after having installed some keras components and h5py:
pip install keras_applications==1.0.4 --no-deps
Collecting keras_applications==1.0.4
Downloading https://files.pythonhosted.org/packages/54/90/8f327deaa37a71caddb59b7b4aaa9d4b3e90c0e76f8c2d1572005278ddc5/Keras_Applications-1.0.4-py2.py3-none-any.whl (43kB)
100% |████████████████████████████████| 51kB 633kB/s
Installing collected packages: keras-applications
Successfully installed keras-applications-1.0.4
(DeepFish) jeanpat#Dell-T5500:~/Developpement/Arch-TensorFlow/tensorflow$ pip install keras_preprocessing==1.0.2 --no-deps
Collecting keras_preprocessing==1.0.2
Downloading https://files.pythonhosted.org/packages/71/26/1e778ebd737032749824d5cba7dbd3b0cf9234b87ab5ec79f5f0403ca7e9/Keras_Preprocessing-1.0.2-py2.py3-none-any.whl
Installing collected packages: keras-preprocessing
Successfully installed keras-preprocessing-1.0.2
(DeepFish) jeanpat#Dell-T5500:~/Developpement/Arch-TensorFlow/tensorflow$ pip install h5py==2.8.0
Collecting h5py==2.8.0
Downloading https://files.pythonhosted.org/packages/8e/cb/726134109e7bd71d98d1fcc717ffe051767aac42ede0e7326fd1787e5d64/h5py-2.8.0-cp36-cp36m-manylinux1_x86_64.whl (2.8MB)
100% |████████████████████████████████| 2.8MB 1.9MB/s
Requirement already satisfied: numpy>=1.7 in /home/jeanpat/anaconda3/envs/DeepFish/lib/python3.6/site-packages (from h5py==2.8.0) (1.15.0)
Requirement already satisfied: six in /home/jeanpat/anaconda3/envs/DeepFish/lib/python3.6/site-packages (from h5py==2.8.0) (1.11.0)
keras-applications 1.0.4 has requirement keras>=2.1.6, but you'll have keras 2.0.8 which is incompatible.
Installing collected packages: h5py
Found existing installation: h5py 2.7.1
Uninstalling h5py-2.7.1:
Successfully uninstalled h5py-2.7.1
Successfully installed h5py-2.8.0
It was possible to finish the build:
Target //tensorflow/tools/pip_package:build_pip_package up-to-date:
bazel-bin/tensorflow/tools/pip_package/build_pip_package
INFO: Elapsed time: 55.947s, Critical Path: 29.05s
INFO: 40 processes: 40 local.
INFO: Build completed successfully, 43 total actions
second step build succeeded too with some warnings:
$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
jeudi 23 août 2018, 15:02:24 (UTC+0200) : === Preparing sources in dir: /tmp/tmp.dEwVvSzrd0
~/Developpement/Arch-TensorFlow/tensorflow ~/Developpement/Arch-TensorFlow/tensorflow
~/Developpement/Arch-TensorFlow/tensorflow
jeudi 23 août 2018, 15:02:31 (UTC+0200) : === Building wheel
warning: no files found matching '.pd' under directory ''
warning: no files found matching '.dll' under directory ''
warning: no files found matching '.lib' under directory ''
warning: no files found matching '*.h' under directory 'tensorflow/include/tensorflow'
warning: no files found matching '*' under directory 'tensorflow/include/Eigen'
warning: no files found matching '*.h' under directory 'tensorflow/include/google'
warning: no files found matching '*' under directory 'tensorflow/include/third_party'
warning: no files found matching '*' under directory 'tensorflow/include/unsupported'
jeudi 23 août 2018, 15:03:09 (UTC+0200) : === Output wheel file is in: /tmp/tensorflow_pkg
Finally I tried to install the python package:
$ pip install /tmp/tensorflow_pkg/tensorflow-1.10.0-py2-none-any.whl
Requirement '/tmp/tensorflow_pkg/tensorflow-1.10.0-py2-none-any.whl' looks like a filename, but the file does not exist
tensorflow-1.10.0-py2-none-any.whl is not a supported wheel on this platform.
Package installation succeeded with:
$ pip install /tmp/tensorflow_pkg/tensorflow*.whl

Tensorflow bazel build failing - not generating bazel-bin directory

I'm trying to install Tensorflow from the source using the following configuration:
NVIDIA GTX 1070
UBUNTU 16.04
CUDA 8.0
Cudnn v5.0
I have followed the following steps from here:
installed bazel
installed dependencies
installed CUDA support
./configure with CUDA 8.0 support
bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
After this step, to my knowledge, there should be a bazel-bin directory, so that I can subsequently execute
$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
# The name of the .whl file will depend on your platform.
$ sudo pip install /tmp/tensorflow_pkg/tensorflow-0.10.0rc0-py2-none-any.whl
However, there is no such directory.
I have a feeling this error message might have something to do with it?
ERROR: /usr/local/lib/python2.7/dist-packages/tensorflow_clone/tensorflow/contrib/rnn/BUILD:45:1: error while parsing .d file: /home/volcart/.cache/bazel/_bazel_volcart/62dff5ffffc63bcd8a9350984645e0be/execroot/tensorflow_clone/bazel-out/local_linux-opt/bin/tensorflow/contrib/rnn/_objs/python/ops/_lstm_ops_gpu/tensorflow/contrib/rnn/kernels/lstm_ops_gpu.cu.pic.d (No such file or directory).
nvcc warning : option '--relaxed-constexpr' has been deprecated and replaced by option '--expt-relaxed-constexpr'.
In file included from third_party/gpus/cuda/include/cuda_runtime.h:78:0,
from <command-line>:0:
third_party/gpus/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later than 5.3 are not supported!
#error -- unsupported GNU version! gcc versions later than 5.3 are not supported!
Upon re-executing bazel build ... I found this...
WARNING: /usr/local/lib/python2.7/dist-packages/tensorflow/util/python/BUILD:11:16: in includes attribute of cc_library rule //util/python:python_headers: 'python_include' resolves to 'util/python/python_include' not in 'third_party'. This will be an error in the future.
I should also add this...
$ bazel version
Build label: 0.3.1
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jul 29 09:09:52 2016 (1469783392)
Build timestamp: 1469783392
Build timestamp as int: 1469783392
bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
Caused a permissions issue. Added sudo
sudo bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

install mlpy 3.5.0 on mac 10.9 error.Please help me

The following is the error which I am getting. Please help me to fix it.
apple:mlpy-3.5.0 apple$ python setup.py install
running install
running build
running build_py
running build_ext
building 'mlpy.gsl' extension
cc -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -Qunused-arguments -Qunused-arguments -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mlpy/gsl/gsl.c -o build/temp.macosx-10.9-intel-2.7/mlpy/gsl/gsl.o
mlpy/gsl/gsl.c:223:10: fatal error: 'gsl/gsl_sf.h' file not found
#include "gsl/gsl_sf.h"
^
1 error generated.
MLPy depends on GNU Scientific Library (GSL), which you need to install first.
You can install it either with brew install gsl or manually from source.
For manual installation, instructions can be found here. The relevant steps are as follows:
go to: http://www.gnu.org/prep/ftp.html
click on an ftp link close to your location
find the gsl/ directory and click on it
find the gsl-VERSION.tar.gz file, where version is 1.14 or greater. Click on that file to download it.
In a terminal window extract the tar.gz file using tar -xzf gsl-VERSION.tar.gz and then cd to the ./gsl-VERSION directory
Look at the INSTALL file. It will probably tell you to run ./configure, then make, and then make install (and you might have to
login as the superuser (sudo)
I am actually getting the same issue today while installing mlpy. Based on the mlpy documentation. Here is the method to solve this issue.
According to the installation section in the mlpy documentation:
If the GSL header files or shared library are in non-standard locations on your system, use the --include-dirs
and --rpath options to build_ext:
$ python setup.py build_ext --include-dirs=/path/to/header --rpath=/path/to/lib
$ python setup.py install
We have to assign the header and lib. Based on How to obtain and install GSL,
Under Search Paths/Header Search Paths type /opt/local/include
Under Search Paths/Library Search Paths type /opt/local/lib
The quick answer is running the below command:
sudo python setup.py build_ext --include-dirs=/opt/local/include --rpath=/opt/local/lib
sudo python setup.py install
Hope this will be helpful.