PyC4D import numpy/scipy [SOLVED]



  • On 18/01/2015 at 05:12, xxxxxxxx wrote:

    Hi
    I want to use numpy/scipy in a PyGenerator. Tryed to copy the numpy folders into "AppData\Roaming\MAXON\Cinema 4D R16 Portable_2D4E0085\library\python\packages\win64" but when i try to
    import numpy it says:
    File "C:\Users\jak\AppData\Roaming\MAXON\Cinema 4D R16 Portable_2D4E0085\library\python\packages\win64\numpy\__init__.py", line 127, in <module>

    Is there a way to use numpy inside c4d? and if yes how i install it ?
    Sorry for my english.



  • On 20/01/2015 at 00:59, xxxxxxxx wrote:

    Please post the entire error message. I guess you need to compile Numpy on your own with VS2010 to make it work. The default numpy distribution package might not work properly.

    Cheers, s_rath



  • On 20/01/2015 at 07:40, xxxxxxxx wrote:

    full log :

    Traceback (most recent call last) :
      File "'Python-Generator'", line 4, in <module>
      File "C:\Users\JAK\AppData\Roaming\MAXON\Cinema 4D R16 Portable_2D4E0085\library\python\packages\win64\numpy\__init__.py", line 127, in <module>
      raise ImportError(msg)
    ImportError: Error importing numpy: you should not try to import numpy from
          its source directory; please exit the numpy source tree, and relaunch
          your python intepreter from there.



  • On 23/01/2015 at 08:31, xxxxxxxx wrote:

    Hi Caradhras,
    There are other ways to install Numpy, Scipy and the lot, but by far the easiest is to install the autoPACK plugin (get it here) which comes with the whole caboodle. They even frequently update the plugin, including Numpy/Scipy installs. To be honest, I've never used autoPACK itself, but Numpy works as a breeze!

    Regards,

    Hermen



  • On 31/01/2015 at 19:41, xxxxxxxx wrote:

    THX


Log in to reply