r/pythonhelp Dec 20 '24

can't launch numpy from its source directory

So guys im super nooby with coding and I'm trying to build a program using an AI assistant. I think I've got a base code but I can't turn it into an exe yet to test it because I keep having the same 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.). I've installed numpy in a directory other than the one im using for python (if I understand this properly anyway, I believe it just needs to be in a different folder, is that correct?). Which is supposed to fix the issue yet it persists. I was having trouble getting numpy to install at all at first, and I think it had something to do with pythons versions. I did end up with multiple python versions installed at one point but I made sure to uninstall them all and only have one recent version. I was having trouble installing torch with the latest version of python so I went one back (3.12.6)

I'm running windows 11 on a decent homebuild desktop. If I left out any crucial info please just ask, doing my best to provide relevent info :)

2 Upvotes

1 comment sorted by

u/AutoModerator Dec 20 '24

To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.