Skip to content

Install issue with windows 10 !! (Anaconda working)  #15

Open

Description

@mashranga

I tried to install with python 2.7 and python 3.6 ..but not hope. The uninstall everything.
But while install with anaconda its works instantly !!
Dont know the reason ..but worked . :)

My settings in configuire.win file

echo 'PKG_LIBS=-L"C:/ProgramData/Anaconda2/libs" -lpython27' > src/makevars.win
echo 'PKG_CFLAGS=-I"C:/ProgramData/Anaconda2/include"' >> src/makevars.win

Activity

  1. jcrichard commented on Jul 19, 2017

    @jcrichard

    mine is

    echo 'PKG_LIBS=-LC:/ProgramData/Anaconda3/libs -lpython36' > src/makevars.win
    echo 'PKG_CFLAGS=-I"C:/ProgramData/Anaconda3/include"' >> src/makevars.win

    and it is working. No "" in tthe first line

  2. holzerp commented on Aug 7, 2017

    @holzerp

    @jcrichard I tried exactly what you had and it came back with an error as follows:

    C:/RBuildTools/3.4/mingw_64/bin/gcc -shared -s -static-libgcc -o rPython.dll tmp.def pycall.o -LC:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs -lpython36 -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA1/R/R-341.1/bin/x64 -lR
    C:/RBuildTools/3.4/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs/python36.lib when searching for -lpython36
    C:/RBuildTools/3.4/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs/python36.lib when searching for -lpython36
    C:/RBuildTools/3.4/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs\python36.lib when searching for -lpython36
    C:/RBuildTools/3.4/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lpython36
    collect2.exe: error: ld returned 1 exit status
    no DLL was created
    ERROR: compilation failed for package 'rPython'

    • removing 'C:/Users/pholzer/Documents/R/win-library/3.4/rPython'
      Error: Command failed (1)

    The only difference is that I have a Windows 7 (32-bit) system. Should that make a difference?

  3. jcrichard commented on Aug 7, 2017

    @jcrichard

    I do not know but I was using R 3.1.3 and packages are located in C:\Program Files\R\R-3.1.3\library

  4. holzerp commented on Aug 8, 2017

    @holzerp

    I just uninstalled my version of R and reinstalled R 3.1.3. I downloaded Anaconda3 for Python 3.6 and repeated the whole process of trying to install rPython on my Windows 7 (32-bit) system.

    I got the following error when running install("C:/Users/pholzer/Downloads/rPython") which rPython is the folder inside which the configure.win file reads
    echo 'PKG_LIBS=-LC:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs -lpython36' > src/makevars.win
    echo 'PKG_CFLAGS=-I"C:/Users/pholzer/AppData/Local/Continuum/Anaconda3/include"' >> src/makevars.win

    Installing rPython
    "C:/PROGRA1/R/R-311.3/bin/x64/R" --no-site-file --no-environ --no-save
    --no-restore --quiet CMD INSTALL "C:/Users/pholzer/Downloads/rPython"
    --library="C:/Users/pholzer/Documents/R/win-library/3.1" --install-tests

    • installing source package 'rPython' ...
      ** libs
      Warning: this package has a non-empty 'configure.win' file,
      so building only the main architecture

    gcc -m64 -shared -s -static-libgcc -o rPython.dll tmp.def pycall.o -LC:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs -lpython36 -Ld:/RCompile/CRANpkg/extralibs64/local/lib/x64 -Ld:/RCompile/CRANpkg/extralibs64/local/lib -LC:/PROGRA1/R/R-311.3/bin/x64 -lR
    c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs/python36.lib when searching for -lpython36
    c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs/python36.lib when searching for -lpython36
    c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: skipping incompatible C:/Users/pholzer/AppData/Local/Continuum/Anaconda3/libs\python36.lib when searching for -lpython36
    c:/rtools/gcc-4.6.3/bin/../lib/gcc/i686-w64-mingw32/4.6.3/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lpython36
    collect2: ld returned 1 exit status
    no DLL was created
    ERROR: compilation failed for package 'rPython'

    • removing 'C:/Users/pholzer/Documents/R/win-library/3.1/rPython'
      Error: Command failed (1)

    Any ideas?

  5. jcrichard commented on Aug 9, 2017

    @jcrichard

    do you have python36.lib and python3.lib in the repository /Anaconda3/libs

  6. RaoTianlong commented on Dec 21, 2017

    @RaoTianlong

    the same ERROR !! have you finally find the right way?

  7. jcrichard commented on Dec 21, 2017

    @jcrichard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions