Coder Social home page Coder Social logo

Comments (9)

msayhan avatar msayhan commented on June 8, 2024 7

Hi,
I just compiled FFTW version 3.3.8 and installed it under my home folder (Ubuntu 16.04) since I do not have sudo rights on our cluster. I want to point out a minor thing to avoid possible confusions for other users. In my case, there was no include folder. The header files were located under the api folder. Also, the lib is called .libs. As a result, I created the binary for fast_tsne using the following command:

g++ -std=c++11 -O3 src/sptree.cpp src/tsne.cpp src/nbodyfft.cpp -I ~/fftw-3.3.8/api/ -L ~/fftw-3.3.8/.libs/ -o bin/fast_tsne -pthread -lfftw3 -lm

Lastly, thanks for figuring out how to install FIt-SNE without privileges.

from fit-sne.

dkobak avatar dkobak commented on June 8, 2024 2

Good point. Note that if one installs FFTW without the --prefix then this is not needed and the g++ call works as is, but this probably requires root privileges and so I guess can be inconvenient on a server.

from fit-sne.

dkobak avatar dkobak commented on June 8, 2024 1

@yimingli Ah, I understand now. Sorry, I have no idea about this error. I haven't tried to install pyFIt-SNE myself, I am using the old-school Python wrapper in this package (FIt-SNE). Maybe George @linqiaozhi will be able to help.

from fit-sne.

lmweber avatar lmweber commented on June 8, 2024

Thanks for the reply. Yes that makes sense, so this is probably only an issue for users who are installing without root privileges.

from fit-sne.

yimingli avatar yimingli commented on June 8, 2024

I installed fftw using conda as suggested here: https://github.com/KlugerLab/pyFIt-SNE. But saw the same fftw3.h: No such file or directory error. Had to specify the fftw paths to make it work. Took me a while to find this post; I think it would be helpful to add some comments or a link to this issue.

from fit-sne.

dkobak avatar dkobak commented on June 8, 2024

@yimingli A link to this issue is right here https://github.com/KlugerLab/FIt-SNE on the front page in the Installation/Linux section. How would you suggest to make it more prominent?

from fit-sne.

yimingli avatar yimingli commented on June 8, 2024

@dkobak Ah, missed that. Thanks. I think I missed that because as a noob, I didn't know the error is related to sudo rights, until I saw your comment above. By the way I falled back to compile myself instead of pip install fitsne because pip install failed with the message:

Collecting fitsne
  Using cached https://files.pythonhosted.org/packages/46/1c/1f28558d49fbc8b719103cf999d12fa76f9e80959b1066803b0bc56bb015/fitsne-0.2.9.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-QvvPHM/fitsne/setup.py", line 10, in <module>
        with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
    TypeError: 'encoding' is an invalid keyword argument for this function

I was wondering if this error is related to the path issue.

from fit-sne.

linqiaozhi avatar linqiaozhi commented on June 8, 2024

@yimingli Are you perhaps using Python2.x? That would explain this error, according to here. The version of FIt-SNE on PyPI requires Python 3. Could you make sure you're using Python3's pip?

Note that this is not really a necessary requirement--the person who made the PyPI version used some Python3 functions, and we never got around to making it backwards compatible.

Finally, if you're still having trouble, would you mind opening a new issue? This way if other users have the same problem they can find it, as it is not likely related to installing without root privileges as discussed here.

from fit-sne.

Quetzalcohuatl avatar Quetzalcohuatl commented on June 8, 2024

For me, .libs was not in fftw-3.3.8 directory but instead was in the directory above it. I dont know why. But thanks mshayan, it works.

from fit-sne.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.