0

Installation:

Enter image description here

Enter image description here

I'm a newbie in Python and I'm facing issues with Anaconda. Whenever I launch Anaconda Navigator it shows Python stopped working and crashes.

Also if I type python in the command prompt I get a warning:

"Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see https://conda.io/activation"

I have seen such questions before and tried the solutions, but nothing seems to work. I also tried to reinstall, but it's the same every time.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Divyata
  • 1
  • 2
  • Please provide enough code so others can better understand or reproduce the problem. – Community Sep 29 '21 at 20:58
  • Related: *[Python is in a Conda environment, but it has not been activated in a Windows virtual environment](https://stackoverflow.com/questions/56679132/)* – Peter Mortensen Oct 26 '21 at 19:58

2 Answers2

0

Try:

conda activate base

Or create a venv:

conda create my_env
conda activate my_env

Or install the Python system directly. Download from here.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Nima
  • 404
  • 3
  • 14
0

This seems to be two separate issues:

  1. Crashing on Anaconda Navigator startup

    Try to update PyQt. For more information, see: Spyder and Anaconda Navigator do not open - "Python has stopped working" (Fixed) #10088

  2. For the Python commands, try to activate your environment: conda activate base.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Gábor Pálovics
  • 455
  • 4
  • 12
  • I tried updating pyqt and also I have tried `conda activate base` but it did not solve the problem. Is there any way I can completely remove anconda and also python from my system and start afresh? Will it work? – Divyata Sep 22 '21 at 09:25
  • Uninstall it from `programs and features` in the control panel. And as I said install python without conda. – Nima Sep 22 '21 at 10:29
  • If this didn't work then I'd recommend trying to reinstall anaconda. In the folder where you installed anaconda (e.g. C:\Users\USERNAME\Anaconda3) there should be a `Uninstall-Anaconda.exe` file. Run it then install anaconda again and hope for the best. – Gábor Pálovics Sep 22 '21 at 11:58
  • @Nima I uninstalled anaconda through program and features and downloaded python through the link shared but during installation it shows me error. I have attached 2 image links in my original query posted above. – Divyata Sep 22 '21 at 12:23
  • I found `core.msi` inside that folder. Search for `core.msi` in `C:\Users\%username\AppData\Local\Package Cache`. If found, browse for it when the error happens. If not, try to download it from somewhere. This is most probably because you don't have an active network connection while installation. – Nima Sep 23 '21 at 06:33