hmenyus / node-calls-python

Call Python from NodeJS directly in-process without spawning processes
MIT License
252 stars 26 forks source link

Does not work with anaconda env #84

Closed harvestingmoon closed 5 months ago

harvestingmoon commented 5 months ago

Hi so currently I have my venv set up in Anaconda, however when I try to do it via the venv method what I received was this error

Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.

Would appreciate if there is any fix for this, cheers.

harvestingmoon commented 5 months ago

Problem closed, overcoming it was just creating a separate Python vent , ensuring that both the conda env and the Python installed version are the same.