-
Notifications
You must be signed in to change notification settings - Fork 108
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
Error in pip install fitsne #109
Comments
Try to remove the problematic flag |
Sorry to disturb you again. How to remove the problematic flag -stdlib=libc++ from the compiler arguments when installing fitsne? Should I download the sources and install locally? |
You should probably clone the repository https://github.com/KlugerLab/pyFIt-SNE and change the |
thanks a lot!!! |
Sorry to reopen this issue again. I tried to remove the problematic flag -stdlib=libc++ from the compiler arguments, there was still something wrong with C++. Is my setup.py codes wrong?
Then I run setup.py in python.
|
Well, now it seems like it doesn't find FFTW. I don't really know how to solve that without diving into it. Installation and distribution problems like this are exactly why I developed openTSNE. If you're okay with a marginal decrease in speed, you can use that, and it's completely painless to install. |
Modify PyPi package and install it# Get fitsne pip package.
wget https://files.pythonhosted.org/packages/92/d4/e19298eb37d1b56d5b0675daf0443a42a17000258ab55797035b8ece2aeb/fitsne-1.1.1.tar.gz
# Extract tar ball.
tar xzf fitsne-1.1.1.tar.gz
cd fitsne-1.1.1 Create file --- fitsne-1.1.1/setup.py 2018-11-17 12:42:11.000000000 +0100
+++ fitsne-1.1.1-patched/setup.py 2021-01-27 16:14:57.148976000 +0100
@@ -24,16 +24,14 @@
if platform == "darwin":
extensions = [Extension("fitsne.cppwrap",
["fitsne/cppwrap.pyx", "fitsne/src/nbodyfft.cpp", "fitsne/src/sptree.cpp", "fitsne/src/tsne.cpp"],
- language="c++",
extra_compile_args=["-std=c++11", "-O3", '-pthread', "-lfftw3", "-lm"],
- extra_link_args=['-lfftw3', '-lm',"-mmacosx-version-min=10.9"])]
+ extra_link_args=['-lfftw3', '-lm', "-mmacosx-version-min=10.9"])]
else:
extensions = [Extension("fitsne.cppwrap",
["fitsne/cppwrap.pyx", "fitsne/src/nbodyfft.cpp", "fitsne/src/sptree.cpp", "fitsne/src/tsne.cpp"],
- language="c++",
extra_compile_args=["-std=c++11", "-O3", '-pthread', "-lfftw3", "-lm"],
extra_link_args=['-lfftw3', '-lm'])]
- extensions = cythonize(extensions, language="c++", include_path=[])
+ extensions = cythonize(extensions, language_level="3", include_path=[])
# package_data = {}
__version__ = "0.0.0"
@@ -58,10 +56,9 @@
except:
extensions = [Extension("fitsne.cppwrap",
["fitsne/cppwrap.pyx", "fitsne/src/nbodyfft.cpp", "fitsne/src/sptree.cpp", "fitsne/src/tsne.cpp"],
- language="c++",
extra_compile_args=["-std=c++11","-stdlib=libc++", "-O3", '-pthread', "-lfftw3", "-lm"],
extra_link_args=['-lfftw3', '-lm'])]
- extensions = cythonize(extensions, language="c++", include_path=[])
+ extensions = cythonize(extensions, language_level="3", include_path=[])
setup(name="fitsne",
version=__version__,
--- fitsne-1.1.1/fitsne/cppwrap.pyx 2020-01-07 22:11:12.000000000 +0100
+++ fitsne-1.1.1-patched/fitsne/cppwrap.pyx 2021-01-27 16:11:46.431525000 +0100
@@ -1,3 +1,5 @@
+# distutils: language=c++
+
import cython
from libcpp cimport bool # Patch extracted PyPi package.
patch -p1 < ../fitsne-pypi.patch
# Install package.
python setup.py install |
I had the same problem as the original post. For me, this error:
turned out to be the main source of the problem. This was solved by installing the
without any errors. Package/system info:
|
Solution of cflerin above worked for me within a Docker container |
Hi, here.
I tried to install Fit-SNE by the command line "pip install fitsne". However, there seemed to be somthing wrong with gcc.
pip install fitsne
version information:
gcc version 10.2.0 (GCC)
The text was updated successfully, but these errors were encountered: