Spyder won't start in any environment or standalone - python

Spyder won't start in any environment or standalone.
In the command window (both conda terminal and cmd ) it doesn't throw any error just silently doesn't work.
When I try to start it by anaconda navigator it throws "Exit code: 3221225477".
I've tried,
Deleting the Anaconda and doing the clean installation several times.
Setting the Anaconda preferences as default.
python spyder --reset
checking hard disk health
diagnose memory problems

Related

leaving Anaconda environment in Terminal (Mac)

I recently installed Anaconda on my Mac for starting to code with Python using Spyder, but decided to switch to VSCode (without starting Anaconda) which I find less confusing (I'm a casual coder). However, every time I open Terminal now on my Mac, the prompt starts with "(base)" which seems to indicate I'm still in the Anaconda Base environment. How do I switch back to the default option? I understand that I can exit the environment with "conda deactivate", but when I open another Terminal I'm back in (base).
If you don't want to use anaconda, just remove it.
Anaconda goes into the base environment at startup. You can leave it with
conda deactivate.
You can also deactivate this startup function with
conda config --set auto_activate_base False

Anaconda Prompt and Navigator missing after install

I installed latest anaconda in C:\Users\Username\Anaconda3.
But the navigator and prompt are missing after installation.
I tried to re-install(as administrator) and reboot the window 10 but it didn't work.
I also tried to delete registry of python which was under HKEY_LOCAL_MACHINE\SOFTWARE as written in following page.
https://docs.anaconda.com/anaconda/user-guide/troubleshooting/#cannot-see-anaconda-menu-shortcuts-after-installation-on-windows
Running 'conda' in command prompt only shows it's not recognized as an internal or external command.
It seems like Anaconda is not installed but just creating bunch of python package in the folder.
Can someone share the idea?
My environment is Window 10 64bit
Thank you very much.
Cleaned user variables in Control Panel -> System -> Advanced System settings -> Environment Variable. Re-installed latest Anaconda in https://repo.anaconda.com/archive/
Now Navigator and Prompt are showing correctly.

Why my Python 2.7 envs only works when I start the terminal by Anaconda Navigator?

All python 2* envs I created doesn't really start when activating dicrectly from cmd. When activating this way, there is no error message on the prompt, all seem to be ok, then I run python 2 scripts and they doesn't work. Only way I found to do it is by starting the terminal from Anaconda Navigador. This also happens with Pycharm: code doesn't works when running py2 scripts in Pycharm WITHOUT having started it from Anaconda Navigator.
Computer programming and configuration is not my professional area, so if the answer relates to configuring path, or system variables, please be kind giving me a "for dummie" explanation.
I'm using Windows 10.
Thanks!

VS Code: python.exe works in terminal only when opened from Anaconda Navigator

When launching Visual Studio Code from the Anaconda Navigator page, the python command works correctly in the integrated terminal (Powershell or Bash).
However, when Visual Studio Code is launched normally (from start menu), python.exe is not found in the terminal (not in path).
Is there a way to always apply Anaconda's config to VS Code, to avoid having to launch it from the Anaconda Navigator page?
When you installed Anaconda you probably had it leave the copy of Python in your base environment off of PATH. That means when you open your terminal it won't be found normally (this isn't specific to VS Code). One way to deal with this is to create conda environments for your project as those will get activated in the terminal when you use the Python: Create Terminal command. That will then make python available as a command from your terminal.

Anaconda Navigator Applications not launching apps

For whatever reason, when I click on launch for any app in the Navigator, will say launching app with the status bar moving but it will eventually stop and the app never opens. I have tried starting with administrative privileges and I have even tried uninstalling and reinstalling and then rebooting but still the apps never launch.
If you are using Debian distribution os then simply you can run following command in your shell after installing anaconda distribution.
export PATH= YOUR_ANACONDA_INSTALLATION_FOLDER_LOCATION/bin:PATH
then run,
anaconda-navigator
for example mine anaconda3 was installed at root/anaconda3,So i used following commands:
┌──[root#kali]─[/]
└──╼ # export PATH=/root/anaconda3/bin:PATH
┌─[root#kali]─[/]
└──╼ # anaconda-navigator
and that worked fine for me:)
I just had this problem! The cause was in a corrupted registry affecting the launch of CMD.EXE (Used by Navigator to launch applications).
Solution: Empty the HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun key
(It contained several occurrences of "if exist"!?)
If you used "conda init", then you will need to re-run the command.

Categories