-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Windows] Environment has not been activated #8412
Comments
I'm speculating, but this might be indirectly related to #8404 (comment), specifically the first problem described. You could try the hack described here to see if it fixes your problem. |
This is going to be pretty hard to debug with the information you've provided. What does |
I looked further into it and it seems that I called that second script by hand, which gives the I also looked into #8404 (comment), they specify that CONDA_BAT variable might be empty.
Looking further into D:\Miniconda3\condabin\conda.bat I think it's this part: |
Update solved the second problem, e.g The solution, run this command in administator cmd prompt. It seems CONDA_BAT environment variable now works:
|
when i run
Note: the warning goes away after activating an environment. (which can be base.)
|
Activation has nothing to do with admin. |
admin is also called "elevation" and yes, this is very different from the "activation" that the warning message is telling you to do. Even without any CONDA_BAT being set, running
works for me. I'm not sure what's causing the system to not be able to find something. It might be spaces or something like that in your install path. With the information you've provided, we can't say anything more. Please always fill out the info requested by the issue template. |
@msarahan Thanks for this! My experience today (September 12, 2019):
I don't see anything about this topic in the trouble shooting section. |
I think we should try to make our documentation about the correct command line usage of Anaconda Distribution to a more prominent location. |
c:\Anaconda3\scripts>activate base This command worked for me too. |
C:\Users\soj4y>python Warning: Type "help", "copyright", "credits" or "license" for more information. How do I activate the environment? |
By running |
hi can you give the proper documentation for this,because im new here. i already followed this step. but when ran the c:\Anaconda\scripts\activate base. The python still appear the same message as above. Please need your consultation. |
need your help |
thanks for this.worked perfectly |
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. |
Hi,
I wanted my base python version to always be updated to the latest version on my Windows machine
However in doing so, conda commands will now always return:
"The system cannot find the path specified"
Simple reproduction
(not Anaconda, this adds a ton of overhead)
Side note: The local user and system %path% variables have more 1048 (or 2048) characters.
(And yes, this path is already reduced by using environment variables)
So conda won't work properly unless we use the 'add to path' checkbox while installing.
Restart PC (to ensure path variables work properly)
Open a cmd.exe with Administrator
Update conda using:
conda update conda
Note: This does not seem to update everything, since python version remains 3.7.1, instead of latest 3.7.2
Update all packages, to ensure python and all it's packages are updated in the base environment
conda update --all
Start python;
python
Result:
At least the version seems to be correct :)
Anyway you can already see what is wrong, apparently it expects the environment to be activated.
Lets do that:
activate base
Result
The system cannot find the path specified.
Same goes for deactivation
conda deactivate
Result
The system cannot find the path specified.
The text was updated successfully, but these errors were encountered: