I have installed nlopt with the: conda install -c conda-forge nlopt
and I can see the package installed when I do: conda list
but when I try to import it on Spyder, I get the message: No module named 'nlopt'. I'm running it on Windows 10, if that is any help, and I'm completely new to python!
Anyone have any idea on how to solve it? Thanks in advance :)
It usually happens while working in several environments.
where spyderwhich will give you instances of Spyder....\anaconda3\envs\your_env\Scripts\spyder.exe ...\Anaconda3\Scripts\spyder.exeYou can copy and run the exe file corresponding to your environment (here, the first one) and it will launch Spyder in that specific environment.