Issue with Installing numpy in Grasshopper Python for Rhino8

I am encountering an issue while trying to install numpy in the Python3 script component of Grasshopper for Rhino8. Below is the code and the error message I received:

r: numpy

import numpy

Error Message:

  1. Error building code | Could not find a version that satisfies the requirement numpy (from versions: none)

Could you please provide guidance on how to resolve this issue?

Additionally, due to our company’s security policies, we need to whitelist URLs and ports that Rhino might access. Could you please provide the necessary URLs and ports required for Rhino to properly install and use numpy?

Can we have additional information which may help:

  1. In rhino type systeminfo and send us the results.
  2. In the script editor, after getting the error, go to Tools > advance logger and send us that file. It will show the specific errors.

Thank you for your response. Here is the information you requested:

Logs.log (48.9 KB)

SystemInfo.txt (2.3 KB)

@yamada.tomoyuki

It seems like you might not have access to the pypi.org servers from your location. The pip command is running fine but can not grab the info for numpy from its servers:

Running process: C:\Users\mtk185\.rhinocode\py39-rh8\python.exe -m pip --disable-pip-version-check install --target "C:\Users\mtk185\.rhinocode\py39-rh8\site-envs\default-S9IgqV9w" --progress-bar off --upgrade --no-warn-script-location --retries 0 --timeout 1 "numpy"
Error 05/23/2024 01:49:02 [RhinoCode] Process exited with code 1
Error 05/23/2024 01:49:02 [RhinoCode] pip install error | 
ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
ERROR: No matching distribution found for numpy
  • Open a terminal from Tools > Advanced > Open Python 3 Shell
  • Run pip install numpy on the command line and see if it works

I am currently working with Rhino and I am having trouble finding the command to open a terminal from the Tools menu.

I don’t think there is an interactive Python REPL in Grasshopper, or even Rhino, if that’s what you mean. Maybe there’s a plug-in?

@yamada.tomoyuki Use the Tools menu in the main editor lauched by the ScriptEditor command

Thank you for the information! I successfully found the terminal through the Tools menu in the main editor launched by the ScriptEditor command. I appreciate your help!

I used the following command to install numpy successfully:

pip install --proxy=http://: numpy

I appreciate your assistance!