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

jpmml-sparkml with python 3 #27

Closed
SrikantChari opened this issue Aug 8, 2017 · 3 comments
Closed

jpmml-sparkml with python 3 #27

SrikantChari opened this issue Aug 8, 2017 · 3 comments

Comments

@SrikantChari
Copy link

how do I get mvn -Ppyspark clean package to use python 3.5 instead of python 2.7?

thank you for your help

@vruusmann
Copy link
Member

The JPMML-SparkML project has got nothing to do with Python. Perhaps you meant to file this issue with the JPMML-SparkML-Package project?

If that's the case, then you need to configure your environment properly, so that the command python would launch python3.5 not python2.7. Alternatively, you may hard-code the path to appropriate Python executable here:
https://github.com/jpmml/jpmml-sparkml-package/blob/master/pom.xml#L152

@SrikantChari
Copy link
Author

My apologies, This should have been under JPMML-SparkML-Package. Thank you for the responding and closing the issue.

vruusmann added a commit to jpmml/pyspark2pmml that referenced this issue Aug 10, 2017
@vruusmann
Copy link
Member

This issue got me thinking, and I've rearranged the pyspark build profile so that it's now possible to specify Python executable using the python.exe system property.

For example, building first for Python 2.7, and then for Python 3.5:

mvn -Ppyspark -Dpython.exe=python2.7 clean install
mvn -Ppyspark -Dpython.exe=python3.5 clean install

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

2 participants