How To Ensure That Spyder Runs Within A Conda Environment?
Solution 1:
I issued the command where spyder
within the active environment to check the locations of Spyder's executables. This returned
C:\Anaconda3\Scripts\spyder.exeC:\Anaconda3\envs\testenv\Scripts\spyder.exe
So I started Spyder by typing the full path of the second entry, and my program ran without errors.
Solution 2:
You can also use the Windows based link that is generated in the Windows menu. The steps:
(in anaconda:) activate testenv
(in anaconda testenv:)
conda install spyder
Look up the windows menu "recently added", find
spyder (testenv)
and [add that to taskbar] and / or [look up the file source location] and copy that to your desktop. In my case, the latter approach opened the directoryC:\Users\USER\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)
where the spyder links for any of my environments could be found; you can then copy them to your desktop for a direct start without the need to open anaconda prompt.
Post a Comment for "How To Ensure That Spyder Runs Within A Conda Environment?"