<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Install Numpy in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/12707628#M17558</link>
    <description>&lt;P&gt;It's 2024-&amp;nbsp; Any updates on how to do this?&amp;nbsp; Would make for much more powerful scripts / add-ins if we could reliable import numpy/scipy / etc...&lt;/P&gt;</description>
    <pubDate>Sun, 14 Apr 2024 13:49:05 GMT</pubDate>
    <dc:creator>goutam_reddy</dc:creator>
    <dc:date>2024-04-14T13:49:05Z</dc:date>
    <item>
      <title>How to Install Numpy</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/7407132#M17552</link>
      <description>&lt;P&gt;Hello, I have a question on how to import Numpy.&lt;BR /&gt;I've seen two other posts about this issue but none have worked for me.&lt;BR /&gt;I've pip installed Numpy, and is in my system's Path variable but I keep getting the "No module named 'numpy'" error.&lt;BR /&gt;In my system I have numpy version 1.13.1 installed in Windows 10 64bit system.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 17:10:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/7407132#M17552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-25T17:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Install Numpy</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/7408184#M17553</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume you were getting the error when you run script or addin in Fusion 360. If so, it was because Fusion 360 had own Python under&amp;nbsp;install folder. You may have to put the library to that folder as below. Meanwhile the install folder of Fusion 360 may be changed after it is upgraded to new version. So the best practice would be to put the library to the folder which your script or addin is located at. The advantage is that your users needn't install the library again when you deliver your script to addin to them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"C:\Users\&amp;lt;User&amp;gt;\AppData\Local\Autodesk\webdeploy\Production\&amp;lt;blablabla&amp;gt;\Python\Lib\site-packages"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Marshal&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 02:46:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/7408184#M17553</guid>
      <dc:creator>marshaltu</dc:creator>
      <dc:date>2017-09-26T02:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Install Numpy</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/7410989#M17554</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp;&lt;BR /&gt;I tried doing "pip install numpy -t file_directory" where the file_directory was the one you mentioned and it installed numpy in the directory but now it is giving me an error: "importerror: cannot import name 'multiarray'". So it seems like it worked but now I just need to debug this error now.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 20:03:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/7410989#M17554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-26T20:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Install Numpy</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/7412928#M17555</link>
      <description>&lt;P&gt;You can also create a directory LINK to the library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open the command prompt / shell and Execute from directory you wish to create the link within&lt;/P&gt;&lt;P&gt;mklink /J numpy&amp;nbsp;C:\some\path\to\the\numpy\folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in your scripts you need to use relative imports like so (notice the leading dot)&lt;/P&gt;&lt;P&gt;from .numpy import Something&lt;/P&gt;&lt;P&gt;import .numpy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cool part about this solution is that if you ZIP up your project folder the linked libraries are simply included in the ZIP (at least they are with 7zip) and you can have multiple projects all "linked" to the same libraries and not have to worry&amp;nbsp;about keeping all of your projects up to date with the latest version of that library.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 11:35:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/7412928#M17555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-27T11:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Install Numpy</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/7413934#M17556</link>
      <description>&lt;P&gt;Ok, i did the command you said to use.&lt;BR /&gt;and when I tried using "import .numpy", it said syntax error, pointing at the period right before numpy.&lt;BR /&gt;so then, I tried "from .numpy import all as np", because I would like all the functions from numpy to be imported and I got&amp;nbsp;&lt;BR /&gt;"ImportError: No module named '__main__C%3A%2FUsers%2F...."&lt;BR /&gt;&lt;BR /&gt;Thank you though.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 16:35:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/7413934#M17556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-27T16:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Install Numpy</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/7423420#M17557</link>
      <description>&lt;P&gt;I was on a business trip for a few days, home now...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like the correct syntax, when using the folder link, is:&lt;/P&gt;&lt;P&gt;from . import numpy as np&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this alone won't work as numpy requires the &lt;A href="https://stackoverflow.com/questions/14570011/explain-why-numpy-should-not-be-imported-from-source-directory" target="_blank"&gt;building of extension modules written in C&lt;/A&gt;&amp;nbsp;(normally done as part of the numpy setup/install).&amp;nbsp;Even if you get around this (likely by hacking at the __init__.py file in the numpy dir) you'll have a servery limited numpy (with none of the C modules), or a non-portable Fusion extension (with the C modules built for your platform), at best..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how to proceed from here - but if you figure it out i'm interested too.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2017 13:52:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/7423420#M17557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-01T13:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Install Numpy</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/12707628#M17558</link>
      <description>&lt;P&gt;It's 2024-&amp;nbsp; Any updates on how to do this?&amp;nbsp; Would make for much more powerful scripts / add-ins if we could reliable import numpy/scipy / etc...&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 13:49:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/how-to-install-numpy/m-p/12707628#M17558</guid>
      <dc:creator>goutam_reddy</dc:creator>
      <dc:date>2024-04-14T13:49:05Z</dc:date>
    </item>
  </channel>
</rss>

