Closed guenteru closed 7 years ago
Hi @guenteru, big thanks for PR!
Still your installation process works for me exactly as the original code. What command do you use to install? I use
pip install .
and then if I examine the lib folder I see no .so
file.
ls /home/dulyanov/miniconda2/lib/python2.7/site-packages/MulticoreTSNE
__init__.py __init__.pyc
whereas if I do
python setup.py install
I get
ls /home/dulyanov/miniconda2/lib/python2.7/site-packages/MulticoreTSNE
__init__.py __init__.pyc libtsne_multicore.so
Important remark: pip install .
works after I do python setup.py install
at least once. The copying does not happen when you do it with pip. So can you please recheck if it works for you if you install in from scratch? Try to remove package completely, so that test.py
throw an error, then clone you repo and do pip install .
there, does it work for you?
Also urllib.request
works only with python3, can you please make it conditional on python version?
Interesting!
For testing purposes I used pip install --no-cache-dir .
(which works) and I assumed it would work without the parameter as well. I was wrong as it seems!
When using default way pip install
the installer first looks for the .so
and subsequently neglects to copy the file, since it wasn't there in the beginning.
This is different when the --no-cache-dir
parameter is provided. The installer first builds the packages and then copies the corresponding files.
You can verify this by comparing the output of pip install -vvv --no-cache-dir .
with pip install -vvv .
I don't see an fast and easy solution to that problem. The alternative would be to build the python package via cmake and then install via pip.
For now the easiest solution is probably to instruct people to use pip install --no-cache-dir .
HTH Дmitry :smiley:
Hi, looks like pip install --no-cache-dir .
works indeed! That is cool. Can you please also change README installation part?
Updated the README accordingly!
kind regards
Thanks!
np!
Is it availible via pip install
as MulticoreTSNE (0.0.1.1)
?
pip search tsne
barnes-hut-tsne (0.2.0) - TSNE implementations for python
bhtsne (0.1.9) - Python module for Barnes-Hut implementation of t-SNE (Cython)
django-whatsnew (1.0) - Simple application to manage `what's new` screen.
fitsne (0.2.0) - Fast Fourier Transform-accelerated Interpolation-based t-SNE (FIt-SNE)
MulticoreTSNE (0.0.1.1) - Multicore version of t-SNE algorithm.
tsne (0.1.7) - TSNE implementations for python
tsne_animate (0.1.3) - Automated animation for scikit-learn's t-sne algorithm
Tsnewp (0.0.1) - T-distributed stochastic neighbor embedding rewrite by ourselves
whatsnew (0.3) - Simple application to manage `what's new` screen.
Hi Dmtry!
This PR fixes problem #6
I did this by using setuptools install function instead of the one contained in distutils. In addition to that I slightly rewrote the custom install function in setup.py. This was necessary, since the original part didn't abort the installation process in the case cmake wasn't installed. For completeness I also added a gitignore file.