Python, unable to import Pandas in Python3Component

This fixed it for now:

First I downgraded pandas to 2.0

pip install --upgrade --force-reinstall pandas==2.0
  • Then i set the regions to English (united states):
  1. Go to Settings > Time & Language > Language & Region.
  2. Check if English (United States) is available under the Languages section. If it’s not, add it by clicking on “Add a language” and searching for English (United States).
  3. Under Region, ensure that the United States is selected.
  4. Open Control Panel.
  5. Go to Clock and Region > Region.
  6. Click on the Administrative tab.
  7. Click on the Change system locale button.
  8. Make sure English (United States) is selected, and then click OK.

and then I set manually the locale in the Rhino Python script:

import locale
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')

import pandas as pd

Hope this might be usefull for anyone.

Leandre Sassi

3 Likes