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
activate.bat broken for path containing spaces on windows #830
Comments
.. since ~dp0 can be in a folder with spaces. Fixes ContinuumIO/anaconda-issues#830
This has just happened to me, and somehow the updating of the packages completely removed my activate.bat file. As in it no longer exists in /scripts The above solution (of replacing activate.bat) doesn't seem to be an option anymore as it's not a part of the conda repository. Where do I find a copy of it? |
@EvenOldridge you are reporting something quite different here from spaces being mishandled in activate.bat. You are reporting the disappearance of that file, likely caused by a virus scanner. Conda stores a package cache in the pkgs folder. You should be able to find activate.bat in the conda-<<version>>\Scripts subfolder of that. |
@mingwandroid Same has just happened with me. Activate.bat is also not available in conda-<>\Scripts folder. Probably, removed from there as well. PS: I detected windows malicious software tool working hard right before this. Your point about virus scanner seems correct. But, what could be the solution? |
Use a better virus scanner? I'm not an expert in the field but I've read recommendations to only use the inbuilt Windows Defender. |
@mingwandroid Thanks. Already using Windows Defender (only). |
If the activate.bat file from the latest backup isn't working, I'd suggest using it from the second latest backup. In my previous experience, that had worked and the issue was resolved after updating conda. |
Updating packages
will break Scripts/activate.bat under Windows if the install path contains spaces. (Replacing activate.bat with the original one just works fine.)
I have installed Anaconda to "C:\Program Files\Anaconda3"
After starting updated Anaconda prompt, instead of
I get:
I experienced the same issue with Anaconda 2.5 (Python 3.5) as well therefore I moved to Anaconda 4 hoping it resolves the problem. Vanilla install was fine but the above package update broke the script again.
Users with the broken script might be unable to switch environment.
The text was updated successfully, but these errors were encountered: