Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JPY for Python
#1
Hello Dear Pythonists :)

I want to install JPY to use it with Python.

I tried to install it from pip install jpy but it dosen't work
and it ask me to install Microsoft JDK and I did .
but it doesn't work too, it another message appear as shown bellow.

[Image: 151673626113211.jpg]


Another method from this site below is so hard and unclear to applied :(

https://github.com/bcdev/jpy/blob/ea9091...nstall.rst

Please Help me resolve this BIG problem

Thank you in advance
Reply
#2
Please note, the jpy module is for python 3 only
You can install this way:
That should get in installed.
Reply
#3
@Larz, note that zip from pypi does not have README.rst and it is required in the setup.py file. Also, according to github rep -it's tested for python 2.7-3.4
better download from github or try pip install https://github.com/bcdev/jpy/archive/master.zip
Note you will need to setup some environmental variables
read how to build on widows https://github.com/bcdev/jpy
Reply
#4
I can't help you there, I guess you need to contact the author.
You can look through their bug tracker to see if this is a reported issue
see: https://github.com/bcdev/jpy/issues?q=is%3Aopen

Or if you want to hack, make an empty .rst file with name and location as specified in the error,
and see if that does the trick

Late Note -- Buran, I just noticed the comment was from you, but the
poster can follow same advise.
Reply
#5
Thank you
don't work :(

[Image: 151674504916241.jpg]

and so the other one

[Image: 151674504945832.jpg]
Reply
#6
Place bug report on https://github.com/bcdev/jpy/issues?q=is%3Aopen
Reply
#7
As I said - read Build for windows section.
You need JDK and Microsoft Visual C++ 14
You can download and isntall Microsoft Visual C++ 14 as recommended in the error msg - from http://landinghub.visualstudio.com/visua...uild-tools
install C++ build tools 2015
you need also JDK
and to set the respective environmental variables as described in Build for windows section.
Reply
#8
Hello

Now another problem it apear

I folowed the instruction from http://jpy.readthedocs.io/en/latest/install.html

[Image: 151691157493711.jpg]


how do I know the version of Microsoft Visual C++.
Reply
#9
there are 3 environmental variables you need to set and you need to add %JDK_HOME%\jre\bin\server to PATH
SET VS90COMNTOOLS=%VS100COMNTOOLS%
SET JDK_HOME=<path to the JDK installation directory>
SET JAVA_HOME=%JDK_HOME%
SET PATH=%JDK_HOME%\jre\bin\server;%PATH%
it looks like you did only first out of 4 commands
Reply
#10
thank you for help but it is the same

[Image: 151691598663891.jpg]
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020