Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'C:\Users\PKumar\Continuum\anaconda3\Scripts\activate.bat' is not recognized as an internal or external command, operable program or batch file. #6053

Closed
ItsPavan opened this issue Oct 2, 2017 · 51 comments
Labels
locked [bot] locked due to inactivity source::community catch-all for issues filed by community members type::packaging indicates a request regarding a package

Comments

@ItsPavan
Copy link

ItsPavan commented Oct 2, 2017

'C:\Users\PKumar\Continuum\anaconda3\Scripts\activate.bat' is not recognized as an internal or external command, operable program or batch file.
Encountered above error in anaconda prompt,i tried pasting activate.bat file into scripts directory,but the dependancies for other files are missing.

@kalefranz
Copy link
Contributor

Does the file C:\Users\PKumar\Continuum\anaconda3\Scripts\activate.bat exist on your system?

@ItsPavan
Copy link
Author

ItsPavan commented Oct 3, 2017 via email

@neelpython
Copy link

neelpython commented Oct 28, 2017

i am having the same problem after installing anaconda3
Cannot start the navigator. Can anybody help

@ccscroggin
Copy link

I am having the same issue - any help would be appreciated. For me, activate.bat does not exist in the scripts directory, but does exist in the same location noted by ItsPavan, as well as a few others. I am on my work laptop, so don't have admin privileges and a anti-virus software may be causing installation issues. Also, I previously installed and uninstalled the 32bit version. I don't see the Anaconda navigator as an option in my start menu following installation.

@Aslizy
Copy link

Aslizy commented Nov 14, 2017

Hi, @ccscroggin. I have the same issue as you. activate.bat is not in the anaconda3\scripts directory, but in the C:\Users\Wei\Anaconda3\pkgs\conda-4.3.30-py36h7e176b0_0\Scripts. I do not know if they are the same activate file. And I do not see the Anaconda navigator as an option after installation. Did you solve this issue, and can anybody help?

I used to install and uninstalled the 64bit version, because after installing opencv3, navigator and spyder both did not work any more.....

@Aslizy
Copy link

Aslizy commented Nov 14, 2017

Just now, I uninstalled the Anaconda, and restarted my laptop, and reinstalled Anaconda again. Anaconda navigator works and activate. bat also works. :) Maybe it is a good idea to restart your laptop between uninstall and reinstall.

Adding path in the environment variable or shutting down anti-virus software does not really help me. But maybe it works for other situations.

@ccscroggin
Copy link

Thanks, @Aslizy . I am still having this issue, and on a different computer now - so don't think it was due to antivirus software. Going to try your suggestion.

@neelpython
Copy link

neelpython commented Dec 2, 2017 via email

@compie
Copy link

compie commented Dec 11, 2017

I had the same issue, see ContinuumIO/anaconda-issues#2533 (comment) for a workaround.

@johnty05
Copy link

Well guys!! I need a bit help here. I have installed Anaconda. Anaconda Prompt is there but no navigator. Even conda is not recognized. I have already changed the path.Please guide me.

@mingwandroid
Copy link
Contributor

I have fixed the underlying bug here but we will not release new Anaconda installers for a while.

The fix is in the latest Miniconda installers:

64-bit:
https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe
https://repo.continuum.io/miniconda/Miniconda2-latest-Windows-x86_64.exe

32-bit:
https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86.exe
https://repo.continuum.io/miniconda/Miniconda2-latest-Windows-x86.exe

Install those, then run the Anaconda Prompt and install whatever packages you need. If you want the latest full Anaconda release then use:

conda install anaconda=5.0.1

@johnty05
Copy link

Thanks a lot @mingwandroid . The above mentioned instructions really worked.

@mingwandroid
Copy link
Contributor

Great. Thanks for the feedback.

@zzwATdhu
Copy link

Thanks @mingwandroid

@louisjuliendo
Copy link

This is all I need. Thanks for the solution.

@anajubl
Copy link

anajubl commented Jan 19, 2018

Thaks a lot mingwandroid. It works

@kalefranz kalefranz added source::community catch-all for issues filed by community members type::packaging indicates a request regarding a package labels Jan 25, 2018
@princehn
Copy link

Thanks a lot.. @mingwandroid

@hvpandya
Copy link

hvpandya commented Feb 19, 2018

Installed Miniconda and tried upgrading to full Anaconda, getting following error:

ERROR conda.core.link:_execute(481): An error occurred while installing package 'defaults::ipykernel-4.8.0-py36_0'.
LinkError: post-link script failed for package defaults::ipykernel-4.8.0-py36_0
running your command again with `-v` will provide additional information
location of failed script: C:\Users\harsh\Miniconda3\Scripts\.ipykernel-post-link.bat
==> script messages <==
<None>

Attempting to roll back.

Rolling back transaction: done

LinkError: post-link script failed for package defaults::ipykernel-4.8.0-py36_0
running your command again with `-v` will provide additional information
location of failed script: C:\Users\harsh\Miniconda3\Scripts\.ipykernel-post-link.bat

@mingwandroid
Copy link
Contributor

Installed Miniconda and tried upgrading to full Anaconda

You shouldn't need to do this now, just install Anaconda 5.1

@maverik-akagami
Copy link

@mingwandroid your December answer on installing miniconda and then installing anaconda still works. Anaconda standalone doesn't work as of today

@mingwandroid
Copy link
Contributor

That's weird because the bug-fix I made for Miniconda is now also in Anaconda. @nehaljwani any ideas about this? Could that patch have got dropped somehow?

@Palwin97
Copy link

Hey, I'm having the same problem here!

I'm tried downloading both Miniconda and Anaconda and the same problem has been occurring :-/

I'm not sure what to do now. Anaconda Prompt is the only thing that has been downloading with a "activate.bat" error.

@maverik-akagami
Copy link

loading miniconda and then using conda install anaconda=5.1 worked for me. please check.

@hamulya
Copy link

hamulya commented Mar 16, 2018

loading miniconda i mean i dont see miniconda anywhere in start options please help

@gabboshow
Copy link

Hi,

same problem here... after installing anconda3 and runnig the anconda prompt I got the message 'activate.bat' is not recognized as an internal or external command... unistalled, installed miniconda, but didnt work as well... any news about this?

@mingwandroid
Copy link
Contributor

You probably need to turn off your virus scanner during installation. There's nothing we can do about this.

@fireattack
Copy link

fireattack commented Apr 3, 2018

@mingwandroid I tried to install anaconda on two different machines (Win 7 and Win 10 respectively, with no AV software) and both resulted in activate.bat being not there at all.

I'm using miniconda now, which has no such problem.

Did you test on Windows machine with fresh installation?

@mingwandroid
Copy link
Contributor

mingwandroid commented Apr 3, 2018

Of course. We test each release on fresh machines and non-fresh machines. Exactly which versions did you try? There was a race condition in AD 5.0.1 that was fixed in AD 5.1.0.

@gabboshow
Copy link

I am using AD 5.1.0 an an brand new machine running windows 8.1. I can't uninstall the antivirus since it is a company laptop...

@mingwandroid
Copy link
Contributor

Can you ask your IT people to disable it while you install AD?

@spno77
Copy link

spno77 commented Apr 10, 2018

I had the same problem on windows 8 ! I uninstalled all python versions i had on my pc, anaconda and disabled my anti-virus. After re-installing anaconda and restarting my pc , it works fine !

@fireattack
Copy link

Yeah, mine was fixed by uninstalling Python first as well. Cheers.

@TheHippiez
Copy link

I have uninstalled Python, re installed anaconda en restarted multiple times. The .bat is still not recognized. Is there a solution in the works?

@Sandidfares
Copy link

thnx a lot @mingwandroid

@mingwandroid
Copy link
Contributor

Is there a solution in the works

It is very difficult for us to fix local problems that we cannot diagnose (and clearly we managed to figure workarounds for most of the people having issues here). If you can identify exactly what goes wrong we can think about developing mitigations and if you are willing to confirm they work for you then we can consider making our install process apply them. However disabling 3rd party anti-virus software is probably not something that we can do programmatically (as otherwise viruses would just do that!).

Some ideas you can try from this thread and others to work around the most common Windows installation problems (namely misbehaving and over-zealous Antivirus software and DLL-hell) in order of most likely to yield a positive result are:

  1. Ensure that from a fresh cmd.exe prompt (non-Anaconda Prompt) where zlib.dll does not show C:\Windows\System32, do the same checks for where python2.dll if you use Python 2. If it does rename them to see if this fixes it. It could break some badly packaged software you use though. Please report this to the developers of this software. Tell them to put their DLLs beside their exes or to statically link to the libraries instead.
  2. Disable your antivirus software temporarily or ask you IT dept to do that for you.
  3. Install Miniconda then install the Anaconda Metapackage as per: 'C:\Users\PKumar\Continuum\anaconda3\Scripts\activate.bat' is not recognized as an internal or external command, operable program or batch file. #6053 (comment) (though this should not be necessary provided you use AD 5.1.0 installers).
  4. Clean up your PATH so it doesn't contain a load of potentially problematic entries as per Anaconda fails to activate environment on Windows OS  ContinuumIO/anaconda-issues#2533 (comment)
  5. Repeat all of these steps but from Safe Mode.

@gabboshow
Copy link

gabboshow commented Apr 19, 2018

Hi,

what worked for me was
Downloaded Anaconda3-5.0.1-Windows-x86_64 (not 5.1.0...at least I didn't try with 5.1.0 after that 5.0.1 worked)
Right clicked on the installation file and selected Run as administrator to install
Selected option to 'Install for:' 'All Users (requires admin privilege)'
Specified Destination folder 'C:\ProgramData\Anaconda3' (maybe location is important, the suggested path of the installation was C:\Users...\AppData)

Didn't need to do anything of the above such disable antivirus etc. (I discovered that I didn't even have an antivirus :) )

@mingwandroid
Copy link
Contributor

Windows Defender is the only AV worth using (occasionally, to offline scan files) IMHO.

@Kranthi-Kumar3
Copy link

Thanks a lotttt!!! @mingwandroid
I've tried everything and this is the only fix that worked for me.

I have fixed the underlying bug here but we will not release new Anaconda installers for a while.

The fix is in the latest Miniconda installers:

64-bit:
https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe
https://repo.continuum.io/miniconda/Miniconda2-latest-Windows-x86_64.exe

32-bit:
https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86.exe
https://repo.continuum.io/miniconda/Miniconda2-latest-Windows-x86.exe

Install those, then run the Anaconda Prompt and install whatever packages you need. If you want the latest full Anaconda release then use:

conda install anaconda=5.0.1

@xinjici
Copy link

xinjici commented May 22, 2018

@kk13579
Following your method, I successfully installed the miniconda and finally can use the Anaconda Prompt. But the problem is when I use the code:'conda install anaconda=5.0.1' to install the full Anaconda, the Anaconda Prompt came to the error:
ERROR conda.core.link:_execute(502): An error occurred while installing package 'defaults::ipykernel-4.8.0-py36_0'.
LinkError: post-link script failed for package defaults::ipykernel-4.8.0-py36_0
How can I fix this?
I have installed the same version of Anaconda successfully before I reinstalled my Windows two days ago, whitout any changes on my hardware...So the bug is caused by the different version of windows?
The problem is really troublesome, I spant my whole day but haven't solving it!!

@eshalev4
Copy link

eshalev4 commented Jun 13, 2018

I am having the same issue here. I tried everything here and got to the

Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while installing package 'defaults::ipykernel-4.6.1-py27h30cef79_0'.
LinkError: post-link script failed for package defaults::ipykernel-4.6.1-py27h30cef79_0
running your command again with `-v` will provide additional information
location of failed script: C:\ProgramData\Miniconda2\Scripts\.ipykernel-post-link.bat
==> script messages <==
<None>

Attempting to roll back.

Rolling back transaction: done

LinkError: post-link script failed for package defaults::ipykernel-4.6.1-py27h30cef79_0
running your command again with `-v` will provide additional information
location of failed script: C:\ProgramData\Miniconda2\Scripts\.ipykernel-post-link.bat
==> script messages <==
<None>

the file .ipykernel-post-link.bat is simply not there, even though I have completely installed Miniconda from the link @mingwandroid gave for Miniconda2 64 bit. I have no path issues as well. there was no issue when I first installed Anaconda3 but than I have uninstalled it because I need python 2.7 version. Any more suggestions?

@alex-movila
Copy link

Make sure to remove any old python path in environment variables in order for anaconda to install without issues

@kasiperumal
Copy link

Hi,

what worked for me was
Downloaded Anaconda3-5.0.1-Windows-x86_64 (not 5.1.0...at least I didn't try with 5.1.0 after that 5.0.1 worked)
Right clicked on the installation file and selected Run as administrator to install
Selected option to 'Install for:' 'All Users (requires admin privilege)'
Specified Destination folder 'C:\ProgramData\Anaconda3' (maybe location is important, the suggested path of the installation was C:\Users...\AppData)

Didn't need to do anything of the above such disable antivirus etc. (I discovered that I didn't even have an antivirus :) )

this one worked..Thanks

@arifzain74
Copy link

Same issue for me. Tried installing and reinstalling but nothing changed. installed miniconda but now i want to upgrade miniconda to anaconda with "conda install anaconda " command, but got some certificate problem (see image). Anyone know any solution ?
condacertifi

@HengyangLin
Copy link

HengyangLin commented Dec 13, 2018

Hey guys, I have met exactly the same problem when I was using anaconda 5.3.1 on windows10.
Well, the solution is to uninstall your anaconda and re-install it. And when you install anaconda, you can't close the exe command window manually which would show up at the end of installing. You should let it run and exit by itself. Only by this way your anaconda would be installed correctly.

@geoelisha
Copy link

      Hey guys, I have met exactly the same problem when I was using anaconda 5.3.1 on windows10.

Well, the solution is to uninstall your anaconda and re-install it. And when you install anaconda, you can't close the exe command window manually which would show up at the end of installing. You should let it run and exit by itself. Only by this way your anaconda would be installed correctly.

I'm still having this trouble, I've reinstalled numerous times - you can't let the .exe finish itself - you have to select buttons to close the dialog box so I'm not sure what you mean above.

@HengyangLin
Copy link

      Hey guys, I have met exactly the same problem when I was using anaconda 5.3.1 on windows10.

Well, the solution is to uninstall your anaconda and re-install it. And when you install anaconda, you can't close the exe command window manually which would show up at the end of installing. You should let it run and exit by itself. Only by this way your anaconda would be installed correctly.

I'm still having this trouble, I've reinstalled numerous times - you can't let the .exe finish itself - you have to select buttons to close the dialog box so I'm not sure what you mean above.

During installing there would be a long lasting black window to show up. (The black window is similar to cmd window.)
I mean, don't close it. Only click those buttons which you are asked to.

@geoelisha
Copy link

Hey guys, I have met exactly the same problem when I was using anaconda 5.3.1 on windows10.

Well, the solution is to uninstall your anaconda and re-install it. And when you install anaconda, you can't close the exe command window manually which would show up at the end of installing. You should let it run and exit by itself. Only by this way your anaconda would be installed correctly.

I'm still having this trouble, I've reinstalled numerous times - you can't let the .exe finish itself - you have to select buttons to close the dialog box so I'm not sure what you mean above.

During installing there would be a long lasting black window to show up. (The black window is similar to cmd window.)
I mean, don't close it. Only click those buttons which you are asked to.

yeah - that's what I did. Still no dice for me. :-/

@bsmadhuri1412
Copy link

bsmadhuri1412 commented Feb 9, 2019

I have fixed the underlying bug here but we will not release new Anaconda installers for a while.

The fix is in the latest Miniconda installers:

64-bit:
https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe
https://repo.continuum.io/miniconda/Miniconda2-latest-Windows-x86_64.exe

32-bit:
https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86.exe
https://repo.continuum.io/miniconda/Miniconda2-latest-Windows-x86.exe

Install those, then run the Anaconda Prompt and install whatever packages you need. If you want the latest full Anaconda release then use:

conda install anaconda=5.0.1

Hi,
I installed as you mentioned. But I am getting path not find error.
I am attaching the screenshots of anaconda prompt and environmental variables.
image

image

And in Miniconda I found activate.bat in Scripts.
Please kindly consider my issue.

@olisteadman
Copy link

olisteadman commented Feb 27, 2019

Still no luck for me either...

I've followed the installation instructions through exactly, 3 times over, trying both Anaconda and Miniconda (latest versions in each case, on a fresh Win10 environment), and at no stage has anything containing 'anaconda' shown up in my programs list or with a search (except 'Anaconda Prompt'); meanwhile the anaconda-navigator command yielded no results (trying in VSCode Terminal, in Command Prompt, and in Anaconda Prompt):

  • Terminal says bash: anaconda-navigator: command not found
  • Both the Command Prompt and anaconda Prompt say 'anaconda-navigator' is not recognized as an internal or external command, operable program or batch file.

There are directories though, at C:\Users\<username>\AppData\Local\Continuum\anaconda3 and C:\Users\<username>\AppData\Local\Continuum\miniconda3.

On opening Anaconda Prompt I see this message:
'C:\Users\<username>\AppData\Local\Continuum\anaconda3\Scripts\activate.bat' is not recognized as an internal or external command

Seems strange that I can see options to remove those 2x condas but can't find them listed in programs:
image

@geoangelotti
Copy link

geoangelotti commented Mar 18, 2019

... meanwhile the anaconda-navigator command yielded no results (trying in VSCode Terminal, in Command Prompt, and in Anaconda Prompt):

* Terminal says `bash: anaconda-navigator: command not found`

* Both the Command Prompt and anaconda Prompt say `'anaconda-navigator' is not recognized as an internal or external command, operable program or batch file.`

When installing anaconda through conda install anaconda the anaconda-navigator is not installed.

You need to manually install anaconda-navigator though conda install anaconda-navigator.

This creates a Start Menu Shortcut for Anaconda Navigator for me (Windows 8.1 though).

@github-actions
Copy link

github-actions bot commented Sep 2, 2021

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Sep 2, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity source::community catch-all for issues filed by community members type::packaging indicates a request regarding a package
Projects
None yet
Development

No branches or pull requests