Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    installing numpy and pydicom in C4D

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 713 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 19/11/2017 at 11:12, xxxxxxxx wrote:

      Hi everyone,
      I am trying to do some stuff with pydicom, a python extension that allows the loading of DICOM files, which are medical imaging files from CT and MRI scanners.
      To read the data I also need numpy.
      I have read some older threads about installing numpy, but I cant make heads or tails from it.

      I have no idea about wheels, eggs or whatnot.
      Can anyone provide the simplest way to install both those packages?

      Some sort of zip file, I can uncompress and drag into my preference/library/python.... folder

      here are links to pydicom
      docs:
      https://pydicom.readthedocs.io/en/stable/getting_started.html

      git:
      https://github.com/pydicom/pydicom

      thanks!

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 20/11/2017 at 06:08, xxxxxxxx wrote:

        Hi Thanassis,

        such a rare visitor in our dark cave...

        Unfortunately from MAXON's side we do not support 3rd party packages/modules/libraries. I mean, of course you may use them, but we simply can't help with it. Terribly sorry!

        I guess, your best bet is currently Niklas, for example in this thread: Numpy Revisited for R18 (Simple)

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 20/11/2017 at 17:32, xxxxxxxx wrote:

          Thanks Andreas, I'll bug Niklas.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 21/11/2017 at 08:43, xxxxxxxx wrote:

            I've added some instructions for build NumPy on Windows here:

            https://www.niklasrosenstein.com/post/2017-11-21-building-numpy-for-cinema4d-on-windows/

            You can find a number of pre-compiled NumPy versions here:

            https://public.niklasrosenstein.com/cinema4d/python/modules/

            @noseman

            If you're on Windows, grab the numpy-1.13.3-py2.7-win-amd64.egg  and open it with as a
            ZIP file (eg. using 7-Zip or rename it to .zip first). You can then simply copy & paste the numpy/  
            folder to your preferences/library/python/packages/win64 directory.

            If you're on macOS, try the  numpy-1.11.0-py2.7-mac.zip (I did not compile 1.13.3 on macOS yet).
            It's basically the same story, only that is already is a .ZIP file and the numpy/  directory is one more
            directory lower.

            Not sure if this mac version still works on recent C4D releases, haven't tried it in a while.

            Cheers,

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              On 21/11/2017 at 09:46, xxxxxxxx wrote:

              Thanks niklas for your blog post! 
              Very handy, didn't know about step 3, explain why I failed most of the time. So big thumbs up !!!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post