'{CONDA_ROOT_PREFIX}\\shell\\condabin\\conda-hook.ps1' not found on PS launch from Anaconda Navigator - miniconda

I had Anaconda3 installed and decided to install miniconda. The initial installation seems to be in ProgramData/Anaconda3 base. Miniconda is in Users\myname\miniconda. When I run anaconda-navigator from the miniconda base installation it reports version 2.1.4. When I run it from Anaconda3 base it is version 1.9.7. The launch link for the PS Prompt on the new mini installation works, but on the old installation of Anaconda3 base, the launch link returns the error.
I'm guessing it might be a path problem but I'm not sure. I don't see any path variable (in Windows 10) with either Anaconda3 or miniconda. The navigator automatically crates those links when you click on install and launch. I tried to remove the application by clicking on the little cog on the card, but all I got was a "Multiple errors" message and it failed to even remove it.
How can I fix this, or have I completely messed up my Anaconda installation?

Related

I have a M1 Pro MBP and was trying to upgrade my default Python from V3.8.8 to V3.11.1 but now can no longer "see" any packages in Anaconda

In changing the symlink to V3.11.1, I've "lost" access to all Python packages installed under 3.8.8. Aanconda can't find any modules either, either under 3.8 or 3.11 and won't let me reinstall Anaaconda.
At the terminal prompt, I can get to V3.11.1 via Python3 command (not Python) and can see a list of modules but none of the packages previously installed. Tried to reinstall Anaconda but the installer says to upgrade instead. When I try to upgrade at the system prompt, "conda" isn't recognized.
I'm know my references are all messed up but not sure how to get my environment working. Appreciate any help/suggestions.

Can't install Spyder through Anaconda Navigator

I cannot install Spyder through Anaconda Navigator. I am a complete beginner when it comes to Python and I have no idea what's going wrong.
I have to create a new environment and open a project there.
What I did so far is: through Anaconda Navigator (1.9.7) I created a new environment (with Python 3.6). Then, for this specific environment I try to install Spyder. I click the 'install' button, a progress bar appears and then nothing happens.
I tried the same steps on friend's laptop and when I click install there, the progress bar also appears. When it's done the 'install' button changes to 'launch'. The only difference that I see between our computers is that I have Windows10 and he has a Macbook. I don't know whether this could be the problem somehow.
How can I install Spyder for a specific environment? What's going wrong with my installation in Anaconda Navigator?
Also, when I try to install Spyder through Anaconda Prompt (with Administrator privileges), I get the following error:
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(568): An error occurred while installing package 'defaults::openssl-1.1.1b-he774522_1'.
PermissionError(13, 'Permission denied')
Attempting to roll back.
Rolling back transaction: done
[Errno 13] Permission denied: 'C:\\Users\\eweli\\Anaconda3\\envs\\HAABSA\\Library\\bin\\libssl-1_1-x64.dll'
I managed to solve this by going to the directory where the file libssl-1_1-x64.dll is located (in your case, C:\Users\eweli\Anaconda3\envs\HAABSA\Library\bin\). Then, I removed the file (by cutting and pasting it to the desktop, just to be safe) and ran the installation command again in an Anaconda prompt (with admin rights):
conda install -c anaconda spyder
After that, the installation went smoothly and a new version of libssl-1_1-x64.dll was created in the corresponding directory (thus I deleted the one I moved previously).
To install spyder, go to the command line and to the directory where you work. Activate your virtual environment by typing
conda activate environment_name
Then once that returns just type
conda install spyder
This should install spyder in your virtual environment.
I had the same issue today, and weirdly a lot of versions didn't work out for me. However, what worked was to go to anaconda prompt, activate the environment and then type
conda install -c conda-forge spyder
Go the directory of your environement in terminal and type :
conda install -c anaconda spyder
it worked well for me.

Spyder failing to launch - “could not find or load the Qt platform plugin windows”

I've recently had to do a fresh install of windows and reinstall all the software I was previously using including anaconda.
I still have all the data from before the reinstall. To save me from pip installing all the packages I was using, I thought it would be easier to copy and paste the environment info from pre windows reinstall (left image) into the environment folder of the freshly installed anaconda (right).(Information/Folders in question)
I'm getting this error message when I try to launch Spyder.
Juypter notebook seems to be working fine but I get the error shown when I attempt to launch Sypder in the 'imported environment' TensorFlow1.8CPU.
Can anyone tell me how to resolve this?
I'm also open to hear any other ways of importing the environment from pre windows install anaconda folder.
I solved this problem by installing spyder with a lower version.

Could not determine jupyterlab build status without nodejs

I'm seeing this error in the terminal: "Could not determine jupyterlab build status without nodejs". Even when latest version of nodejs is installed on my PC.
Please guide what should I do?
I ran into a similar issue this morning and ended up here. The diagnostic message appears to be harmless:
[W 07:35:51.998 LabApp] Could not determine jupyterlab build status without nodejs
However, the way I resolved it for my configuration (Windows 10, Anaconda distribution of Python 3.7) was to download NodeJS from the source. Choose the LTS (Long Term Support) version of Node.js rather than the "Current with the latest features" edition.
Next, ensure the node executable is in the search path. On Windows, hold the Windows key and Break. Click on Advanced System Settings -> Environment Variables -> System Variables. Double click PATH to edit. Click OK until you're out.
In a new command window, run:
jupyter lab
You're looking for something like this in the output:
[I 07:16:26.721 LabApp] Node v10.15.3
On Unbuntu 20.04, just activate the environment and install by conda:
conda install -c conda-forge nodejs
Try the command below, follow through the prompt and see if it helps in your issue.
jupyter lab --debug
You can check your installation of npm or nodes by using
node -v
npm -v
FWIW, I got the same error message, on Win10, and just restarted the virtual environment, restarted jupyter lab and have not had the error since (several days). Doesnt help of course if there is an underlying issue:)
For Mac OS/Windows: install LTS version of Node.js from here and restart jupyter lab.
I installed it from source but it looks like a version had installed on conda that was old, which was causing this issue. If you've installed nodejs with conda (or something similar) you will get an outdated version, uninstall it and install it from the nodejs website manually. The error will fix.
Just for completeness, on Linux Mint LMDE 5, installing with pip solved the problem:
pip install nodejs

Anaconda installed without conda.exe

I had missing conda.exe in Continuum\anaconda3\Scripts folder, so conda command doesn't work. This is not PATH problem. After that I have uninstalled anaconda, rebooted and installed just downloaded last version of anaconda. Installation was without admin rights. After that I still have conda missing in that folder.
What can I do? Is where a way to install conda eventually? Is it better to open an issue?
Windows 10, anaconda 5.01
PS I have previously installed Anaconda. Which I believe was installed with admin rights to whole users. Can it cause such problem?
I had the same issue in installation.
Issue: anaconda.exe file not found
Solution worked for me : Installed with admin rights and anaconda.exe was found in installation folder and startup menu.
Status : Resolved
There have been multiple reports of incomplete Windows Anaconda installations with Anaconda v5.0.1. There is a current workaround that you could try to see if this resolves the problem: https://docs.anaconda.com/anaconda/user-guide/troubleshooting#cannot-open-anaconda-prompt-after-installation
Uninstalled and installed with miniconda. Then installed with conda Anaconda, everything is fine now

Resources