Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cblas.h: No such file or directory #5618

Closed
flashkari opened this issue May 12, 2017 · 1 comment
Closed

cblas.h: No such file or directory #5618

flashkari opened this issue May 12, 2017 · 1 comment

Comments

@flashkari
Copy link

I want to install T-SNE but I got the below error. I do not how solve this problem.

`Collecting tsne
Using cached tsne-0.1.7.tar.gz
Requirement already satisfied: Cython>=0.19.1 in ./anaconda/lib/python2.7/site-packages (from tsne)
Requirement already satisfied: numpy>=1.7.1 in ./anaconda/lib/python2.7/site-packages (from tsne)
Requirement already satisfied: scipy>=0.12.0 in ./anaconda/lib/python2.7/site-packages (from tsne)
Building wheels for collected packages: tsne
linux-x86_64-2.7/tsne/bh_sne_src/quadtree.o -msse2 -O3 -fPIC -w
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
tsne/bh_sne_src/quadtree.cpp:12:19: fatal error: cblas.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1


Failed building wheel for tsne
Running setup.py clean for tsne
Failed to build tsne
Installing collected packages: tsne
Running setup.py install for tsne ... error
Complete output from command /home/flashkar/anaconda/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-B5EWG_/tsne/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-LiCecB-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/tsne
copying tsne/_version.py -> build/lib.linux-x86_64-2.7/tsne
copying tsne/init.py -> build/lib.linux-x86_64-2.7/tsne
creating build/lib.linux-x86_64-2.7/tsne/tests
copying tsne/tests/test_seed.py -> build/lib.linux-x86_64-2.7/tsne/tests
copying tsne/tests/test_iris.py -> build/lib.linux-x86_64-2.7/tsne/tests
copying tsne/tests/init.py -> build/lib.linux-x86_64-2.7/tsne/tests
UPDATING build/lib.linux-x86_64-2.7/tsne/_version.py
set build/lib.linux-x86_64-2.7/tsne/_version.py to '0.1.7'
running build_ext
building 'bh_sne' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/tsne
creating build/temp.linux-x86_64-2.7/tsne/bh_sne_src
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/flashkar/anaconda/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -Itsne/bh_sne_src/ -I/home/flashkar/anaconda/include/python2.7 -c tsne/bh_sne.cpp -o build/temp.linux-x86_64-2.7/tsne/bh_sne.o -msse2 -O3 -fPIC -w
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/flashkar/anaconda/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -Itsne/bh_sne_src/ -I/home/flashkar/anaconda/include/python2.7 -c tsne/bh_sne_src/quadtree.cpp -o build/temp.linux-x86_64-2.7/tsne/bh_sne_src/quadtree.o -msse2 -O3 -fPIC -w
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
tsne/bh_sne_src/quadtree.cpp:12:19: fatal error: cblas.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

----------------------------------------

Command "/home/flashkar/anaconda/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-B5EWG_/tsne/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-LiCecB-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-B5EWG_/tsne/
`

I tried the following commands but I get the same error.

sudo apt-get install python-dev Reading package lists... Done Building dependency tree Reading state information... Done python-dev is already the newest version (2.7.11-1). 0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.

$sudo apt-get install libevent-dev Reading package lists... Done Building dependency tree Reading state information... Done libevent-dev is already the newest version (2.0.21-stable-2ubuntu0.16.04.1). 0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.

@flashkari
Copy link
Author

this problem solve by sudo apt-get install libblas-dev libatlas-base-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant