First. thanks for getting python3 going huge leap forward.
I use Anaconda quite a lot. can i not have rhino use my existing conda environments? meaning i have to double down on recreating those envs into the .rhinocode folder?
I have numpy installed into the .rhinocode env OTB from mcneel and that works to import , I purposely created and anaconda env targeting python 3.9 and installed pandas there. Here is the error i get as well as the code…
#! python3
# env: 'C:\\Users\\<usernameobfuscated>\\anaconda3\\envs\\rhino\\Lib\\site-packages'
import rhinoscriptsyntax as rs
import scriptcontext as sc
import System
import System.Collections.Generic
import Rhino
import numpy
import pandas
def runme():
print (pandas)
print (numpy)
print (rs)
return
runme()

when i go to using sys.path for locating pandas, it is found however throws the error. (note i removed the # env part)
here is that code
#! python3
import rhinoscriptsyntax as rs
import scriptcontext as sc
import System
import System.Collections.Generic
import Rhino
import sys
sys.path.append(r'C:\\Users\\<usernameobfuscated>\\anaconda3\\envs\\rhino\\Lib\\site-packages')
import numpy
import pandas
def runme():
print (pandas)
print (numpy)
print (rs)
return
runme()
when i close rhino and use the python.exe provided in the .rhinocode folder i have no issue pathing and working with the libraries in the anaconda env
Is this maybe a bug with the editor? can i tell rhino to use my anaconda env instead at runtimes?
1 post - 1 participant

