<?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 use python 3 libraries through PyRevit in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11177937#M27318</link>
    <description>&lt;P&gt;Thanks for your detailed response. I wasn't sure why Python 3 libraries wouldn't work but I just assumed they wouldn't and proceeded with what I could get to work. I have also figured out how to code and test from an IPE without having to reload so I am good there too.&amp;nbsp;Hopefully your answer comes in handy for others facing these same kinds of issues.&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 17:43:31 GMT</pubDate>
    <dc:creator>shea.robisonSGEZR</dc:creator>
    <dc:date>2022-05-18T17:43:31Z</dc:date>
    <item>
      <title>How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10173809#M27307</link>
      <description>&lt;P&gt;I am working with Python in Revit using PyRevit. Although there are lots of limitation when using PyReivit, I still wanna try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to import PySimpleGUI to create User interface for my button. I have install the library by using pip install.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I import to my scirpt and run in Revit. It gives me "There is no modules named PySimpleGUI"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way for me to use python libraries in through PyRevit?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 12:17:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10173809#M27307</guid>
      <dc:creator>duongphong29</dc:creator>
      <dc:date>2021-03-21T12:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10176233#M27308</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The python package must be included with&amp;nbsp;&lt;SPAN&gt;embedded cpython. The packages I have used are scipy, numpy, and pandas.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how you would import pandas:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#!python3

import pandas as pd  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ensure your environment variables have a variable called "PYTHONPATH" and is pointing to the location of the module you would like to import:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smarente1_0-1616423141805.png" style="width: 696px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/896554iAE8B24A583F5DF2D/image-dimensions/696x134?v=v2" width="696" height="134" role="button" title="smarente1_0-1616423141805.png" alt="smarente1_0-1616423141805.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may need to restart your computer after creating this new system variable for it to be recognized.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you can directly path the module using sys:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import sys

sys.path.append(r'C:\Users\smarentette\AppData\Local\Programs\Python\Python38\Lib\site-packages')

import pandas as pd&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 14:30:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10176233#M27308</guid>
      <dc:creator>smarente1</dc:creator>
      <dc:date>2021-03-22T14:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10176331#M27309</link>
      <description>&lt;P&gt;I have set up everything but it still doesn't work, including pandas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there is something to do with IronPython, Python and CPython. I am confused about those three.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you tell me exactly how to implement Python in Revit??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, I am appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 14:59:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10176331#M27309</guid>
      <dc:creator>duongphong29</dc:creator>
      <dc:date>2021-03-22T14:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10176378#M27310</link>
      <description>&lt;P&gt;Python does not ship out with pandas, did you install it to site-packages using pip in your command line?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, and that still doesn't work try uninstalling python 3.9 and using python 3.8 instead as the CPython engine is 385.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 15:18:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10176378#M27310</guid>
      <dc:creator>smarente1</dc:creator>
      <dc:date>2021-03-22T15:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10176497#M27311</link>
      <description>&lt;P&gt;I have tried uninstall Python 3.9 and install Python 3.8.0 but it doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result still the same:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;IronPython Traceback:
Traceback (most recent call last):
 File "E:\PyREVIT\extensions\pyRevitTools.extension\DuongPhong.tab\Management.panel\Update Section.pushbutton\script.py", line 6, in &amp;lt;module&amp;gt;
ImportError: No module named pandas


Script Executor Traceback:
IronPython.Runtime.Exceptions.ImportException: No module named pandas
 at Microsoft.Scripting.Runtime.LightExceptions.ThrowException(LightException lightEx)
 at Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow(Object value)
 at Microsoft.Scripting.Interpreter.FuncCallInstruction`2.Run(InterpretedFrame frame)
 at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
 at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
 at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
 at PyRevitLabs.PyRevit.Runtime.IronPythonEngine.Execute(ScriptRuntime&amp;amp; runtime)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 Mar 2021 15:50:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10176497#M27311</guid>
      <dc:creator>duongphong29</dc:creator>
      <dc:date>2021-03-22T15:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10176572#M27312</link>
      <description>&lt;P&gt;Your error shows that your not using the Cpython engine. It should show this when the Cpython engine cant find or use a module:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smarente1_1-1616429490526.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/896633iEDC5D627B6CFDA3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smarente1_1-1616429490526.png" alt="smarente1_1-1616429490526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ensure your using the newest pyRevit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 16:14:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10176572#M27312</guid>
      <dc:creator>smarente1</dc:creator>
      <dc:date>2021-03-22T16:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10176734#M27313</link>
      <description>&lt;P&gt;OMG, Thank you, turns out because of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I need is to put #! python3 at the beginning of the script to run script with CPython.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this only works when I changed to Python 3.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 17:06:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10176734#M27313</guid>
      <dc:creator>duongphong29</dc:creator>
      <dc:date>2021-03-22T17:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10900150#M27314</link>
      <description>&lt;P&gt;Thanks in advance. I am having this same issue trying to run pandas. I am getting back in to pyRevit, and as far as I can tell I have everything set up as it should be, and I have followed all the advice in this thread, and yet this still does not run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Spyder as an IDE, but trying to resolve this issue I have installed Python 3.10 on its own as well. I have added a PYTHONPATH in Enviromental Variables pointing to all sorts of folders. I have added Search Paths to all sorts of directories. Nothing seems to work. I either get the "pandas module does not exist" message or this "invalid syntax" error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know what other information you might need. Your expertise is definitely appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shearobisonSGEZR_0-1642983479089.png" style="width: 1164px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1015030i43C25A1A1CC48FD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shearobisonSGEZR_0-1642983479089.png" alt="shearobisonSGEZR_0-1642983479089.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 00:25:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10900150#M27314</guid>
      <dc:creator>shea.robisonSGEZR</dc:creator>
      <dc:date>2022-01-24T00:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10902257#M27315</link>
      <description>&lt;P&gt;That is revit python shell not pyRevit...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 18:26:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10902257#M27315</guid>
      <dc:creator>smarente1</dc:creator>
      <dc:date>2022-01-24T18:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10902278#M27316</link>
      <description>&lt;P&gt;Thanks for the response. RPS is how I am developing my scripts for pyRevit. I don't know of another way to test my scripts other than trying them out in the RPS first. I use Spyder to write the code in Python&amp;nbsp; and the RPS to check how the scripts work in Revit. If the script isn't working in the RPS will it still work in pyRevit?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 18:33:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/10902278#M27316</guid>
      <dc:creator>shea.robisonSGEZR</dc:creator>
      <dc:date>2022-01-24T18:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11177895#M27317</link>
      <description>&lt;P&gt;Maybe you already figured it out, but anyway... In short, you can't.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RevitPythonShell is still using IronPython, so it can't handle libraries that are not pure python or those that only support python 3.x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's an open issue on &lt;A href="https://github.com/architecture-building-systems/revitpythonshell/issues/103" target="_blank" rel="noopener"&gt;RPS's github regarding this.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Until someone gets their hands dirty and implement CPython support in RPS, you're out of luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generally code directly in visual studio code set up with &lt;A href="https://github.com/gtalarico/ironpython-stubs" target="_blank" rel="noopener"&gt;ironpython-stubs&lt;/A&gt;&amp;nbsp;for autocompletion, and use &lt;A href="https://www.revitapidocs.com/" target="_blank" rel="noopener"&gt;revitapidocs&lt;/A&gt;&amp;nbsp;for everything else, then run the command directly in pyrevit (you don't need to reload pyrevit after editing a script, so it's not so bad).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course you'll lose the interactivity...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 17:21:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11177895#M27317</guid>
      <dc:creator>ghensi</dc:creator>
      <dc:date>2022-05-18T17:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11177937#M27318</link>
      <description>&lt;P&gt;Thanks for your detailed response. I wasn't sure why Python 3 libraries wouldn't work but I just assumed they wouldn't and proceeded with what I could get to work. I have also figured out how to code and test from an IPE without having to reload so I am good there too.&amp;nbsp;Hopefully your answer comes in handy for others facing these same kinds of issues.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 17:43:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11177937#M27318</guid>
      <dc:creator>shea.robisonSGEZR</dc:creator>
      <dc:date>2022-05-18T17:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11333290#M27319</link>
      <description>&lt;P&gt;Both options worked for me. Just make sure your python3 site packages directory is the only directory PYTHONPATH points to. No semi-colons and no other directories.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if setting PYTHONPATH manually inwindows, rather than sys.path.append method my Pycharm environment got completely screwed up. Which would be fixed by changing my PYTHONPATH back to what it was pointing to previously, which meant Cpython no longer worked....&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 17:50:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11333290#M27319</guid>
      <dc:creator>michaelmacneill</dc:creator>
      <dc:date>2022-08-01T17:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11363105#M27320</link>
      <description>&lt;P&gt;Does this method work for all libraries? I have a working python script that want to run through my PyRevit toolbar with a couple of simple inputs but I think it is having troubles importing the libraries. The 2 that I imported were 'requests' and 'json'.&amp;nbsp;&lt;BR /&gt;Here is the GitHub link to view my script if you want to see what it looks like for reference.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://github.com/kslifter/Python" target="_blank"&gt;https://github.com/kslifter/Python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 20:57:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11363105#M27320</guid>
      <dc:creator>Ian_H</dc:creator>
      <dc:date>2022-08-16T20:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11363503#M27321</link>
      <description>&lt;P&gt;So I am still fairly new to Python. I downloaded Python 3.10. I created a working script in VS Code and I imported the libraries ’requests’ and ‘json’. The script creates a new page in Notion. I am wanting to run this through Pyrevit. If I am reading this thread correctly I just need to point the script in the direction of where libraries are located? I had an similar response when working on running the script through Dynamo. Where are they saved on my computer?&amp;nbsp;&lt;BR /&gt;Here is the GitHub link to view my script as reference.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://github.com/kslifter/Python/tree/main" target="_blank" rel="noopener"&gt;Link&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 02:50:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11363503#M27321</guid>
      <dc:creator>Ian_H</dc:creator>
      <dc:date>2022-08-17T02:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11372668#M27322</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11866798"&gt;@Ian_H&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;PyRevit comes with its own Cpython3 interpreter, and already has requests in its own library and json is a built-in module,&amp;nbsp;so you don't need to point your scripts to the external python 3.10 site-packages.&lt;/P&gt;&lt;P&gt;just follow the developer guides on &lt;A href="https://www.notion.so/pyRevit-bd907d6292ed4ce997c46e84b6ef67a0" target="_blank"&gt;pyrevit's notion&lt;/A&gt; to create your button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 08:02:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11372668#M27322</guid>
      <dc:creator>ghensi</dc:creator>
      <dc:date>2022-08-22T08:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11372828#M27323</link>
      <description>&lt;P&gt;Thanks for getting back to me. I ended up figuring out how to run it through Dynamo. I will remember this for the future though.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 09:31:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/11372828#M27323</guid>
      <dc:creator>Ian_H</dc:creator>
      <dc:date>2022-08-22T09:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/12146316#M27324</link>
      <description>Good day,&lt;BR /&gt;&lt;BR /&gt;I am reading your post and I am also struggling with what you struggled with and seemed to figure out. I would appreciate if you can let me know how to code and test from an IPE (I am using VSCode) without having to reload pyRevit every time. Currently it is very frustrating and timeous to have to reload every time I want to test code.&lt;BR /&gt;Thankyou in advance&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Wagner</description>
      <pubDate>Thu, 03 Aug 2023 10:58:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/12146316#M27324</guid>
      <dc:creator>wagnerhNA49Z</dc:creator>
      <dc:date>2023-08-03T10:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/12752455#M27325</link>
      <description>&lt;P&gt;After setting the Pythonpath to my python3.8, python3 packages started to work with my pyRevit extension, however, my pyrevit Stubs and Revit API Stubs for VSCode Intellisense suddenly stopped working. What could be the reason for this and is there a fix? I have included the stubs path in my VSCode settings.json and also include the stubs in my Path environment variable but they still don't work!&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2024 11:35:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/12752455#M27325</guid>
      <dc:creator>adarsh_aromabim</dc:creator>
      <dc:date>2024-05-04T11:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python 3 libraries through PyRevit</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/12781991#M27326</link>
      <description>&lt;LI-CODE lang="python"&gt;#! python3
# -*- coding: utf-8 -*-

import sys
sys.path.append(r'C:\\Users\\piete\AppData\\Local\\Programs\\Python\\Python310\\Lib\\site-packages')
import pandas as pd&lt;/LI-CODE&gt;&lt;P&gt;Above is my code&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;CPython Traceback:
ImportError : Unable to import required dependencies:
numpy: Error importing numpy: you should not try to import numpy from
 its source directory; please exit the numpy source tree, and relaunch
 your python interpreter from there.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I fix this?&lt;BR /&gt;I'm an architect by eduction so I know very little about the background of coding.&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2024 09:46:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-use-python-3-libraries-through-pyrevit/m-p/12781991#M27326</guid>
      <dc:creator>PieterL_TM</dc:creator>
      <dc:date>2024-05-18T09:46:43Z</dc:date>
    </item>
  </channel>
</rss>

