Installing Python packages

Hi,

I tried importing the pandas package but I failed to run it on my Dynamo. I wanted to ask you rather than deleting all and downloading Python again. I also don’t need any hurry to solve this issue.

I am using Revit 2023, Dynamo Core 2.13.1.3887, and Dynamo Revit 2.13.1.3891. My system version is 3.8.10.

I followed all the steps to download pandas package here and download pandas in site-packages. But I get Module not found error.

Is it because my system version is not 3.8.3?

What <VERSION> you see will depend on the version of Python Dynamo is using:

  • For Dynamo 2.7, this is Python version 3.7.3
  • For Dynamo 2.8, this is Python version 3.8.3
  • For all other versions of Dynamo, or if you are in doubt which is the correct version, you can always run this code in a Python node to ask Dynamo :smile:

at the end of the site @c.poupin’s solution is adding this line but I still get an error after adding this

import sys
import os

localapp = os.getenv(r'C:\Users\ecenu\AppData\Local') # should I not add "\Local" here?

sys.path.append(os.path.join(localapp, r'python-3.8.10-embed-amd64\Lib\site-packages'))

import pandas as pd

I guess I should have followed here

1 Like