Closed kastnerp closed 4 years ago
Hi,
I just had this issue and I found advice here: https://github.com/numpy/numpy/issues/14675
So basically in my code, I added:
# Import libraries
import os
import sys
env_p = sys.prefix # path to the env
print("Env. path: {}".format(env_p))
new_p = ''
for extra_p in (r"Library\mingw-w64\bin",
r"Library\usr\bin",
r"Library\bin",
r"Scripts",
r"bin"):
new_p += os.path.join(env_p, extra_p) + ';'
os.environ["PATH"] = new_p + os.environ["PATH"] # set it for Python
import numpy
Best,
Justyna
That worked, thanks!
This worked for me too. This is something to do with emacs only as the code seems to work ok in vscode. Think it is the mingw-p64
Hi,
Thanks for the great work on this! It seems to me that it should be possible to use this with Anaconda, however, when I set a custom interpreter and try to import numpy, I receive this error:
(Please note that I replaced my user directory in the paste above)
Opening the environment in a CLI and importing numpy from there works without any problems. One user reported #39 that reinstalling the numpy package solved the issue for him but that, unfortunately, doesn't work for me. Is there anything I can do to get this running with Anaconda?
Best,
Patrick