Where to install a Python module so a Python script can import it?

Where to install a Python module so a Python script can import it?

cadTPLWJ
Advocate Advocate
887 Views
7 Replies
Message 1 of 8

Where to install a Python module so a Python script can import it?

cadTPLWJ
Advocate
Advocate

In F360 running on Win10, I want to use "import svgwrite" in my script. 

Where shall I "pip install " to for this to work?

 

I realise this has been asked a lot before, but I have not found anything that works for me yet.

0 Likes
Accepted solutions (1)
888 Views
7 Replies
Replies (7)
Message 2 of 8

Jorge_Jaramillo
Collaborator
Collaborator

Hi,

 

In this topic https://forums.autodesk.com/t5/fusion-360-api-and-scripts/import-data-from-excel-type-xlsx/m-p/11249... on message #5 I gave a solution step-by-step to make it work.

Please take into account that Fusion 360 will include soon Python's version 3.10 and the procedure could change.

 

I hope this could help.

 

Regards,

Jorge Jaramillo

Software Engineer

 

 

 

Message 3 of 8

cadTPLWJ
Advocate
Advocate

 @Jorge_Jaramillo 

In the Text Command window in Fusion you will get something like this:

Please tel me, where will this text appear?

 

0 Likes
Message 4 of 8

Jorge_Jaramillo
Collaborator
Collaborator
Which text are you talking about?
Didn't get your question. Please explain it.
0 Likes
Message 5 of 8

cadTPLWJ
Advocate
Advocate

@Jorge_Jaramillo 

In this topic https://forums.autodesk.com/t5/fusion-360-api-and-scripts/import-data-from-excel-type-xlsx/m-p/11249... 

You say -->  7. Finally run the script and check for the data in Text Commands window:

As an inexperienced user I can't find the "Text Commands window"

0 Likes
Message 6 of 8

Jorge_Jaramillo
Collaborator
Collaborator
Accepted solution

Hi @cadTPLWJ ,

 

Under menu File > View > Hide/Show Text Commands you can hide/display the Text Command window which by default is located in Fusion's lower area:

wtallerdemadera_0-1693253134031.png

 

Every app.log() call will print the output to this window.  I use it often to test my developments.

 

Regards,

Jorge Jaramillo

Software Engineer

 

 

Message 7 of 8

cadTPLWJ
Advocate
Advocate

@Jorge_Jaramillo 

app.log() is a nice debug tool, thanks!

Also got the pip install to work as described. Again, Thanks!

0 Likes
Message 8 of 8

Jorge_Jaramillo
Collaborator
Collaborator
It's nice it helped you out.
0 Likes