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

Different Python versions #17

Open
rkillick opened this issue Jun 15, 2019 · 3 comments
Open

Different Python versions #17

rkillick opened this issue Jun 15, 2019 · 3 comments

Comments

@rkillick
Copy link

I'm a CRAN package developer and I have had many people call for a Python implementation of one of my packages. I got a student to create this and we have it all working in base Python but I wanted to take advantage of the same C code that the R package uses.

This is when I ran into Python problems. I've tried several recommended ways of interfacing existing C code to Python but for each way there are Python installs that cannot download and use my package! You have to be using the "right" version of Python in order to be able to use the package. This is just my understanding so please do correct me if i'm wrong on this.

This, to me, is a huge downside of Python right now. Why should a user have to change their software to run my package? I can see an argument for forcing users to upgrade, but most Python packages that run on 2.7 don't run on 2.6 or 3.0. At least with R packages get checked and removed if authors don't update them.

@eddelbuettel
Copy link
Contributor

Great points, Rebecca. For years we had one 'dual language' package on CRAN: fastcluster but that idea never got much further. I did add R(cpp) bindings to the powerful C++-based Python package annoy in the RcppAnnoy. But I am with you -- we need better 'reference' ways to design modeling approaches and implementations that can be shared. Where to start?

@rkillick
Copy link
Author

Certainly starting with common base code such as written in C/C++ is a must. But ultimately it is down to the individual languages to be welcoming to interfacing to such code. Thankfully R is, Matlab is too, but I can't say the same for Python.

@matloff
Copy link
Owner

matloff commented Jun 17, 2019

Yes, this is an excellent example. And it's not just Python versions, but also things like virtual environments.

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

3 participants