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

can not install #59

Open
zaoqi opened this issue Mar 24, 2019 · 5 comments
Open

can not install #59

zaoqi opened this issue Mar 24, 2019 · 5 comments

Comments

@zaoqi
Copy link

zaoqi commented Mar 24, 2019

$ pip install java2python
Collecting java2python
  Downloading https://files.pythonhosted.org/packages/e4/4d/96dd48650ebe9dcdcbef4e61840e9efdf240b34cee6bdb8ea8de6749d1e5/java2python-0.5.0.tar.gz (138kB)
    100% |████████████████████████████████| 143kB 23kB/s 
Collecting antlr_python_runtime==3.1.3 (from java2python)
  Could not find a version that satisfies the requirement antlr_python_runtime==3.1.3 (from java2python) (from versions: )
No matching distribution found for antlr_python_runtime==3.1.3 (from java2python)

@jurentie
Copy link

@zaoqi
I ran into the same issue. My problem was that I was trying to run using Python3. I found [here] that java2Python requires Python2.7. Python2.7.9 was the first version with pip capability to I installed this Python version. Ran py -2 -m pip install java2python and it worked.

I also had run py -2 -m pip install install http://antlr3.org/download/Python/antlr_python_runtime-3.1.3.tar.gz so I am unsure if this is needed before.

@ilkeuygun
Copy link

@jurentie Thank you for pointing Python 2.7.9 out.
Can you please fix your link in "I found [here] that" part.

Thanks,

@phs-sakshi
Copy link

even after this when I run j2py HelloWorld.java it shows me j2py is not an internal or external command.
PS- I have my PATH variables set to ../Python27 and ../Python27/Scripts

@MrKomodoDragon
Copy link

@jurentie I am on a Mac, and when I attempt to run py -2 -m pip install java2python, it says command not found. Anything I can do?

@MrKomodoDragon
Copy link

Never mind! Ran python2.7 -m pip install java2python and worked succesfully!

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

5 participants