user5311361
user5311361

Reputation: 47

How can I solve this python egg_info error?

I get this error while installing "tsne". I am following this documentation for installation. Both methods throw the same error.

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-IVtJ7x/tsne/

EDIT:

Find the screenshot here.
SCREENSHOT- CLICK ME

Upvotes: 0

Views: 209

Answers (1)

Marat
Marat

Reputation: 15738

Well, it clearly says there is a syntax error in the setup.py. I checked the PyPi version and it includes this debug line:

print '!!!!!!!!!!!!!', find_packages()

This line will not cause problems for Python2, but will be considered a syntax error in Python3. I assume your default python is Python3.

The github version does not have this line, so installation from github should work:

pip install git+https://github.com/danielfrg/tsne.git

If it does not, my best shot would be to use scikit-learn as the author of the package suggessted:

Note: Scikit-learn v0.17 includes TSNE algorithms and you should probably be using them instead of this.

Upvotes: 1

Related Questions