Is it a good idea to keep installing new versions of python to improve the performance of Rhino and Grasshopper? Yesterday I installed version 3.9. Earlier I had version 3.7.
The Python 3.7 or 3.9 you have installed does not directly impact Rhino.
Rhino embeds a version of IronPython, currently I believe it is 2.7.9. This is the python engine that Rhino and GH use, it is installed for you when you install Rhino, not easily accessible from outside Rhino, and cannot be changed.
Additionally, while you can use this python engine to access Rhino’s internal, there is very little Rhino core code that is actually written in Python, so changing python versions would only have an impact on the performance of scripts running in Rhino, and not by much in most cases.
Okay. Thanks.
Hi, I would like to inquire about IronPython2.7 in Grasshopper. But I have Python3.10 installed on my computer. Can I implement it in Grasshopper using Python libraries and modules
Rhino 7 cannot directly use an external Python installation, see my reply above. In Rhino 7, all Python scripts are interpreted by the IronPython 2.7 installation that is in the Rhino installation folders.
If you are trying to install and use Python libraries that can run on IronPython, this thread seems fairly accurate: How to install python packages/modules with pip ? - Grasshopper
If you are trying to install and use Python libraries that can only run on CPython (for example Numpy), here’s one way to do it: Create CPython components using Hops in Grasshopper