Anaconda displays incorrect environment name, but correct is active - environment

When I start anaconda prompt, it displays the wrong environment name. It is one that does not even exist.
I have tried to reinstall anaconda, but that did not solve my problems.
List of environments and activating one

Related

Error Starting Kernel: '_xsrf' argument missing from POST

I donĀ“t know if this error was caused maybe because I deleted one environment from my anaconda navigator, but every time I try starting jupyter lab (from various environments in anaconda or from the default python installed on my computer) I get this error with every single notebook:
Error Starting Kernel: '_xsrf' argument missing from POST
I have tried setting the following configuration to True:
c.NotebookApp.disable_check_xsrf = True
By generating the jupyter_notebook_config.py file from Pycharm. I also deleted the .jupyter folder but nothing of what I have done works.
I have the same problem. Reinstalled several time with different option but no success. Jupyter Notebook works just fine

running jupyter-notebook from terminal calls wrong script

I am trying to open jupyter-notebook (Anaconda 3 distribution) from the terminal, but whether I call jupyter, jupyter-notebook, or jupyter notebook, I get an error indicating that what was actually called was C:\ProgramData\Anaconda3\Scripts\jupyter-notebook-script.py.
I have C:\ProgramData\Anaconda3\Scripts and C:\ProgramData\Anaconda3 added to PATH, so I can see that it is looking in the right directory, but matches with the wrong file.
Is the solution to add only the .exe's I want to PATH, rather than the folder? Or is there a way to add a folder to path such that only .exe's will be noticed. Or perhaps there is some way of setting the priority when the given command matches multiple entries in PATH?
Edit:
I got what I need working by reinstalling Anaconda with the 'add to PATH' option selected. However, I am still interested in WHY this issue was occurring, and posting an answer to that may be helpful for future viewers of this page.
Are you running jupyter from the Anaconda Prompt?
On Windows it's bad practice to add the variables to PATH manually to use Anaconda. You lose the entire point of Anaconda managing these things itself.
If all you want is to launch an jupyter notebook using your anaconda distribution just open the anaconda prompt (comes with the installation), make sure the jupyter package is installed and run jupyter notebook.
If that doesn't work, might be that the conda environment's path got messed up during jupyter's installation so pip uninstall jupyter then pip install jupyter from within the Anaconda Prompt.
Lastly, if you haven't already, think about using conda envionments so that you really will never have to mess with your PATH anymore.
I was able to solve this issue by reinstalling Anaconda with 'Add to PATH' selected, rather than adding to path manually.

conemu and console2 emulators not getting new path variable

I thought maybe it was a system issue but recently did a fresh install (win7 64bit) and a clean install of conemu (had same problem with both conemu and console2 on old win32 system). Also everything I find researching has to do with adding variables via the command line. I'm doing this through Start->Control Panel->System->Advanced System Settings and then restarting the console. cmd picks up the path correctly.
When I manually add a new path to the system or user PATH variable and then restart the console and echo %path% it has not re-loaded the new PATH variable.
cmd.exe:
C:\Users\lotus>echo %path%
C:\Python33\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\
System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\;C:\PHP;C:\ProgramData\
Composer\bin;C:\PHP;C:\PHP\ext;C:\Ruby200-x64\bin;C:\Users\lotus\AppData\Roaming
\npm
conemu:
C:\Program Files\ConEmu>echo %path%
C:\Program Files\ConEmu\ConEmu;C:\Program Files\ConEmu;C:\Python33\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Ruby200-x64\bin
I know there is a extra C:\PHP but that's another issue. I still have the same problem if I remove that.
Thanks
When you are using alternative tab based terminals like ConEmu or Console2, you need to restart the terminal, not a single console (read tab)!
This is because child processes inherit their environment their direct parent process, not from the system!
Sometimes explorer (or whatever shell you are using to start ConEmu) needs to be restarted, as in you have to kill explorer.exe, so your start menu disappears and relaunch it from task manager. If all else fails, log off and on again.
Even if ConEmu is closed, there is a ConEmu64.exe process. Need to kill it.

Railsinstaller trying to use unmapped drive

After installation completes,
the "Rails Environment configuration" window pops up:
The system cannot find the drive specified.
# Rails Environment Configuration.
Your git configuration is incomplete.
user.name and user.email are required for properly using git and services such
as GitHub ( http://github.com/ ).
Please enter your name, for example mine is: Wayne E. Seguin
After setting my name, following error occurs:
error: could not lock config file H:\/.gitconfig: No such file or directory
Should I really have H:/ mapped to be able to install Rails?
UPD: I looked into c:\RailsInstaller\Ruby1.9.2\setup_environment.bat and found it uses HOMEDRIVE and HOMEPATH, I had no such environment variables. I added those, still it didn't helped.
UPD2: Still, I could run rails after installation. Meanwhile, I installed it on my virtual Ubuntu.
UPD3: #Luis: thank you, that must be the reason. Although I have set environment variable HOMEDRIVE to correct one, still, if I run "set homedrive" in cmd, it gives out wrong value.
The issue is that setup_environment.bat look for those environment variables.
Please see this post at the RailsInstaller list:
https://groups.google.com/group/railsinstaller/browse_thread/thread/2337bfed4557f3f1
While the error is not the same, it might be associated to the same environment variables.

Cannot use gem and ruby command after install on Vista

I installed Ruby and Ruby on Rails yesterday on Vista 32bit using the directions on this site: http://rubyonrails.org/down
So I downloaded the installer, then Gems, then I downloaded rails with Gems.
Now I can't use the Gem or Ruby commands in the command line... so I assume there's something wrong with the environment variables, but I hav eno idea how to set them up in Vista or what to put.
Can anyone help me with this?
To set up the environment variables, do this
Fire up the start menu
Right-Click on Computer and select Properties
Click Advanced system settings in the left-hand bar, and confirm the UAC prompt
Select the Advanced tab (it's 3rd)
Click Environment Variables... (at the bottom)
In the top box (User variables for XXX) either find the entry for PATH, or click new to create the entry.
If there is already a PATH use semi-colons to seperate each directory listed in it
Put c:\ruby\bin (change if you installed ruby somewhere else) in.
Click OK a lot of times to close all the windows we opened.
Restart your command prompt.
gem and ruby and irb should now all work. Whoever said that GUI tools are slower than command line tools. pshaw!
In the command line window type PATH then hit return, do you see ruby.exe on the PATH environment variable?
If you installed ruby to say c:\ruby then it'll be c:\ruby\bin\.
Looks like it may be missing from the path.
Add your ruby bin directory to your PATH environment variable, go to Control Panel -> System -> Advanced system settings, then go to the Advanced tab, Environment Variables, then edit your PATH variable and append the path to the ruby binaries install i.e. ;C:\ruby\bin

Resources