Ok, I deleted folder from here according to other posts in mcneel forum:
C:\Users\petrasv\.rhinocode\py39-rh8\site-envs
Old stuff got removed and the scripts folder is initiated.
What I see now:
-
I can import the library and print its version
-
but the conda libraries seems to be not loading, e.g. if you copy paste this line:
from compas.geometry import (
Frame,
Plane,
Vector,
Geometry,
Transformation,
Polyline,
Polygon,
Point,
Box,
Line,
Pointcloud,
bounding_box,
convex_hull,
distance_point_point,
cross_vectors,
centroid_points,
distance_point_plane_signed,
intersection_plane_plane_plane,
centroid_polyhedron,
volume_polyhedron,
transform_points,
)
it requires scipy. which is weird because conda environment already has this library installed.
And if I write: # r: scipy
, RhinoCode tries to install the library but actually nothing happens and the code does not run.
Any ideas how to solve this?
It feels that RhinoCode does not read libraries from conda environment:

Error 13.10.2023 15:10:55 [RhinoCode] Error executing code | Traceback (most recent call last):
File "file:///C:/Users/petrasv/Desktop/Untitled.py", line 9, in <module>
File "C:\Users/petrasv/AppData/Roaming/McNeel/Rhinoceros/8.0/scripts\compas\geometry\__init__.py", line 192, in <module>
from ._core.transformations_numpy import dehomogenize_and_unflatten_frames_numpy, dehomogenize_numpy
File "C:\Users\petrasv\AppData\Roaming\McNeel\Rhinoceros\8.0\scripts\compas\geometry\_core\transformations_numpy.py", line 7, in <module>
from scipy.linalg import solve # type: ignore
File "C:\Users/petrasv/AppData/Local/anaconda3/envs/compas_dev/Lib/site-packages\scipy\linalg\__init__.py", line 208, in <module>
from ._basic import *
File "C:\Users/petrasv/AppData/Local/anaconda3/envs/compas_dev/Lib/site-packages\scipy\linalg\_basic.py", line 13, in <module>
from ._decomp import _asarray_validated
File "C:\Users/petrasv/AppData/Local/anaconda3/envs/compas_dev/Lib/site-packages\scipy\linalg\_decomp.py", line 26, in <module>
from scipy._lib._util import _asarray_validated
ModuleNotFoundError: No module named 'scipy._lib._util'
Full list of conda environment dependencies:
To put it more simply, this does not work: