Anaconda3 activate.bat is not recognized as an int

2019-03-18 19:19发布

I have downloaded Anaconda3 for windows 64-bit operating system. After the download and install completed, I opened the Anaconda prompt but it give me this nice error:

'C:\Anaconda3\Scripts\activate.bat' is not recognized as an internal or external command,operable program or batch file.

I just surfed the internet and found a solution to uninstall all previous packages of python but did not work. I have searched for activate.bat file in my system " found it in one folders of anaconda directory " and copy, paste it to the Scripts folder but it gives me errors with conda packages and dependencies. Any solutions please!!
I cannot run any either jupyter notebook or conda as well. Actually, I do not know how to find them in those bunch of Anaconda files and packages.

Thanks in advance,,,.

9条回答
Animai°情兽
2楼-- · 2019-03-18 19:50

The Fix is simple. Here's what you need to do. Go to--

C:\Users\USERNAME\AppData\Local\Continuum\anaconda3\Scripts\

*Replace USERNAME with your own***

If you are not able to access this location, then directly search in your C drive for Continuum, and from there you can write the rest of the URL

Search for "Activate.bat" If you are able to find this file, then go to ANACONDA PROMPT and Change your directory by typing:

cd C:\Users\USERNAME\AppData\Local\Continuum\anaconda3\Scripts\

*Replace USERNAME with your own***

Your directory is now projecting to this new location.

Now type:

activate.bat

Hit enter

Now you activated your Anaconda.

Now, you can check if it is working or not by typing

Conda list
查看更多
Summer. ? 凉城
3楼-- · 2019-03-18 19:59

When you installing Anaconda3 on Windows 10 and the Anaconda Navigator menu item does not install, and running the Anaconda Prompt gives the activate.bat error.

  1. Delete all instances of the previous python IDEs
  2. Reveal hidden files within the control menu
  3. Go to -> C:\Users[Username] in windows explorer
  4. Delete the files .conda and .anaconda. Possibly others if you had other IDEs.
  5. Go to -> C:\Users[Username]\AppData\Local
  6. Delete all python related files conda, python, ect.. any instances other python IDEs
  7. Go to -> C:\Users[Username]\AppData\Roaming
  8. Delete all python related files conda, python, ect.. any instances other python IDEs
  9. Run the Anaconda installer as Admin and install in a directory such as C:\anaconda3
  10. Sit back and wonder why an install took 4 hours out of my life and start drinking.

At some point I felt like this was a test for the uninitiated... can I start coding now?

查看更多
beautiful°
4楼-- · 2019-03-18 20:02

I had the same issue and solved it like this:

  1. Open a command prompt (cmd.exe)
  2. Execute these commands to reset two environment variables:

    set PYTHONPATH=

    set PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

  3. Start the installer (from within the same command prompt).

  4. Now the installation will succeed!

Tip: if 'Anaconda Prompt' in the start menu isn't working afterwards, use this workaround: C:\Users\<username>\AppData\Local\Continuum\anaconda3\Scripts\activate.bat C:\Users\<username>\AppData\Local\Continuum\anaconda3

查看更多
登录 后发表回答