Using Python >3 on Mac compiler issue

Create issue
Issue #21 new
Peter Rijnbeek created an issue

I find it very hard to get PythonInR setup to also work well with Python 3.6 under mac.

By default it will take the 2.7 version even though I changed the path to look for 3.6

system("python --version") Python 3.6.3 :: Anaconda, Inc.

I set the variable as suggested: Sys.setenv(USESPECIALPYTHONVERSION="python3")

However, when installing from source: install.packages("PythonInR", type = "source")

I get a compiler error:

ld: library not found for -lpython3.6m
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [] Error

i think it would be much better if you could specify which python you could use like in the new package from RStudio reticulate.

Help is appreciated.

Comments (0)

  1. Log in to comment