Can't install Spyder through Anaconda Navigator - windows-10

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.

Related

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

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?

Spyder, clean Win installation, ver. 4.2.3 - pip gives message "No module named pip"

I have Spyder, clean Win10 installation, ver. 4.2.3.
When I run command pip, it gives message:
Note: you may need to restart the kernel to use updated packages.
C:\Users\UserName\AppData\Local\Programs\Spyder\Python\python.exe: No module named pip
I restarted Spyder, Win10, nothing helps.
How to fix it?
Thanks.
(Spyder maintainer here) We don't provide pip in our Windows app to prevent people breaking Spyder by installing any kind of packages with it.
The best way to use other packages that don't come with our app is to install Miniconda, create a conda environment after that with the packages you want to use and spyder-kernels, and finally connect Spyder to that env.
If you have python 3.4+ then pip should be installed with python.
To check that, you can run
pip help
in your windows command line.
However, if it isn't the case then download the get-pip.py file and run
python get-pip.py
and the pip installation should start. You can use pip help to verify this.
Another source of the problem might be that pip isn't listed in your PATH variables and thus isn't recognized by your command line.

How to open conda shell in mac

I am new to conda and mac (i mostly use Ubuntu and pip). Is there a conda shell on mac (I guess I read somewhere that there is none).
If that is the case, how am I suppose to run command like:
conda env create -f environment.yml
as asked here: https://github.com/datitran/face2face-demo
I opened Anaconda Navigator then > Environment > Create > import > and in Specification File gave path of above environment.yml file.
Is the above step correct?
Is there a way to do this via shell in Mac? (I am using macOS Catalina Version 10.15.3)
I am not a Mac user, but I think you can run anaconda commands directly from the terminal, just like in Ubuntu. There's no anaconda prompt in Mac.
I was having the same problem. I opened the Anaconda Navigator program. I clicked on "Environments." Under the working environment, I clicked the right arrow and one of the options was "Open Terminal." When the terminal opened using this sequence, I was able to use the conda commands. Like you I am using Mac OS Catalina.
if in case you have clicked no during conda installation when it asked if it should be added to path or you just can't access it on your terminal for any other reason:
Run this conda update anaconda-navigator in your terminal.
But most likely it won't work because you don't have access of conda in your shell. What you have to do is run one at time the following steps in your terminal.
1st:
nano ~/.bash_profile
2nd:
export PATH=/usr/local/anaconda3/bin:$PATH
3rd:
source ~/.bash_profile
Then try:
conda
And finally make sure you exited your anaconda navigator, then run this:
conda update anaconda-navigator
This should do it, but if in case don't work out try to install homebrew in your Mac then repeat the steps.
On installing anaconda on mac it may install conda in the zsh shell. So you may want to test starting the zsh.
$ zsh
and it should start the terminal with the (base)
(base)$ conda --version
Never hurts to double check.

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.

I am not able to install scikit-image package from anaconda

conda install scikit-image
I used this command in anaconda prompt to install this library but I am getting an error
I have set the environment variable as my jupyter notbook is working properly.
You need to open the anaconda prompt. Go to the Windows start icon, start typing "Anaconda", select "Anaconda prompt". A new command window opens. Now you can use conda from there.

Resources