Can't import 'System' module in PyCharm (external Python editor)

Hi guys,

Has anyone encountered issues using PyCharm as an external editor for CPython? I’ve managed to set the interpreter to Python 3.9, and it successfully recognizes the Rhino module. Here’s a screenshot from the settings for the Python interpreter:

However, the problem I’m currently facing is that PyCharm cannot recognize the System module. Unlike when using the new Script Editor from Grasshopper, where I can easily import the System module, PyCharm seems unable to do so.

import clr

clr.AddReference("System.Drawing")
from System.Drawing import Color

color = Color.FromName("SlateBlue")
print(color)

Hi @Mahdiyar

Thank you for the reply. I just tried your suggestion, but I still have an issue with recognizing the ‘System’ module in PyCharm. I am not sure if I am doing something wrong.

Here is the screenshot: