I had Anaconda on Windows 10 installed in C:\ProgramData\Anaconda3 before using PyCharm. Now PyCharm displays: "Anaconda installation is not found" when I try using a conda env.
I also added Anaconda to PATH.
Is there a way to show PyCharm where Anaconda is installed?
There is an open bug, currently PyCharm and IDEA both seem to detect Conda installation only from %HOMEPATH%/anaconda. https://youtrack.jetbrains.com/issue/PY-26923
The easiest workaround is to create a symlink to $HOME/.anaconda
mklink /D %HOMEDRIVE%%HOMEPATH%\anaconda C:\ProgramData\Anaconda3
Note that C:\ProgramData\Anaconda3 should be replaced with the path to your Anconda installation. If you selected to installed it for "Just Me" instead of "All Users", your default location will be
C:\Users\<your_username>\AppData\Local\Continuum\anaconda3
UPDATE: This issue is now fixed in IDEA and PyCharm since version 2018.1. You can specify a custom path under Python Interpreter or SDK settings in Conda Environment section.
In #Ahti Kitsik's answer above, the following line did not work, and resulted in a an error:
mklink /D %HOMEPATH%\anaconda C:\ProgramData\Anaconda3
Because of a different install location, the following worked for me:
mklink /D "%HOMEPATH%\anaconda" "C:\Dev\Anaconda3"
"C:\Dev\Anaconda3" should be the anaconda installation folder on your PC.
Also, be sure to run the cmd with administrator privilege, otherwise you will get a permission error when trying to create the symlink.
You can't find anaconda python in your console at first.Click Configure Interpreters in blue.
Click the little gear under reset in blue(right + up corner), and chose 'add local'.
point to your python in anaconda
Here you are
I fixed this by:
Uninstalling the Anaconda that was installed with Visual Studio 2017. I did this by unticking the option within the VS2017 installer.
Installing Anaconda after downloading the official installer.
Rebooting my PC.
My theory is that VS2017 installs Anaconda in a non-default location, and PyCharm cannot find it. The Anaconda installer states that VS2017 should still work fine with Python, even after this change.
I faced the same issue on Ubuntu 16.04 where I had Anaconda installed under ~/.local/opt/anaconda3.
Creating a symlink under ~/anaconda3 solved the issue for me.
mklink /D %HOMEDRIVE%%HOMEPATH%\anaconda "C:\Program Files\Anaconda3"
I had a similar problem running linux (Ubuntu) because I installed anaconda to a custom location. Creating a symbolic link to anaconda in home directory solved the problem.
You can run the following command to do that:
ln -s /_my_custom_path_to_/anaconda3/ /home/_my_user_name_/anaconda3
* keep in mind _my_custom_path_to_ and _my_user_name_/ are your custom path to anaconda and user name correspondingly
Related
I uninstalled and re-installed Anaconda on my Windows 64-bit while I had an Anaconda environment activated in my cmd. Now, cmd won't open anymore, unless I launch it as administrator (restarting computer and removing Anaconda as Path variable doesn't help). My guess is that my cmd is "blocked" now, as I didn't do "conda deactivate" before uninstalling Anaconda (can't say with certainty though that this was actually the reason, but it coincides with cmd not opening anymore).
Does anyone have an idea how to fix this?
The error message from the screenshot appeared while uninstalling Anaconda, and also when trying to re-install it.
Whenever I try to install Anaconda, Anaconda Navigator, Anaconda Prompt then all other applications are not included in the Anaconda3 folder. Is there any reason for this? I'm unable to find a solution for this.
I have installed the Anaconda 3 in my windows 10 and it has not installed the Scripts folder and the Anaconda Prompt or Navigator applications.
I have come here and in other sources for an answer and tried to reinstall, use the cmd as adm to install with the conda commands, but the system does not recognize the conda command. I have seen answers with the Scripts folder, but it was not installed.
I have also seen answers advising me to install miniconda and then update to anaconda, but again, miniconda has the same problem as anaconda: no scripts folder, no recognition of the conda command.
I don't know what to do.
Dear all who may have had the same problem, what worked for me was to install the 32-bit version, I had heard it was more stable.
I did not have to restart Windows after installing this version, It was already there, Anaconda Prompt and Navigator.
I work on a hp Probook with windows 10 and the problem was that the application hp Sure Sense Installer block the installation of anaconda. After uninstalling the hp Sure Sense Installer application and reinstalling anaconda, everything works fine !
I install Anaconda vs 2019.10 on my Windows 10 but I couldn't find the shortcuts to it.
I've tried searching for it using CMD but it's returns the message that Anaconda can't be found
And I can't also find jupyter notebook or spider
Reinstall Anaconda and don't change the default settings. Everything will work as expected. C:\Users\user_name\AppData\Anaconda3\condabin will be added to your PATH and you'll only need to conda activate (or run the Anaconda-Prompt shortcut) to start using Python.
Recently I upgraded from Windows 8.1 to Windows 10. Although Windows said it didn't change anything to my files and folders, this was not the case. Only one of the shortcuts in my Anaconda folder in the start menu remained. This was the Anaconda Prompt so I thought I just run the following commands to fix my links:
conda update conda -f
conda update anaconda -f
Although this returned a few links, it did not restore everything which means I was stuck with a dysfunctional installation of Anaconda.
The following worked for me (albeit on Windows 7):
Open a command prompt as administrator
Execute "C:\Anaconda3\pythonw.exe" "C:\Anaconda3\Lib\_nsis.py" mkmenus
I use Miniconda. When I updated with
conda update conda
there were these following lines along with the list of packages to be updated:
The following packages will be REMOVED:
console_shorcut-0.1.1-3
powershell_shortcut-0.0.1-2
I saw those lines after the update and the shortcut to the command window was gone. So I restored the Anaconda Prompt command window shortcut with
conda install console_shortcut
mkmenus did not work for me but the following worked on Windows 10 32-bit, Miniconda3.
Open command prompt (admin privileges not required).
Navigate to your Miniconda\Scripts directory. Replace kk with your username.
cd "C:\Users\kk\Miniconda3\Scripts"
Run Activate.bat
activate.bat
Install console_shortcut.
conda install -c anaconda console_shortcut
When using Miniconda installed for the local user:
C:\Users\<username>\AppData\Local\Continuum\Miniconda3\pythonw.exe C:\Users\<username>\AppData\Local\Continuum\Miniconda3\Lib\_nsis.py mkmenus
This was also on Windows 7.
To solve this I did the following:
Remove Anaconda with "add or remove program" link
Reinstall Anaconda with the latest installer link
After this everything is restored and since the uninstall program does not remove user files your environments and settings are also still there. If for some reason you stored projects in the Anaconda folder, this folder will be removed so watch out for that ;)