My anaconda navigator takes 2-3 minutes to start. I have proxy setting set correctly and I can use conda install with no problem.
Why is Anaconda Navigator so slow?
I had the same problem. My issue was the ssl verification as I assume my workplace has done something with Firewall or etc. So I took the following two steps to fix it:
- open command prompt (cmd.exe)
- You can see the list of conda settings: conda config --show
- Disable the ssl verification: conda config --set ssl_verify False
Now launch the Anaconda. If it takes time, wait! It will finally load.
- Go to File->Preferences (shortkey: Ctrl+P)
- Make sure to uncheck the "Enable SSL verification". (attached image)
- Don't forget to click on the Apply button.enter image description here
That made the trick and Anaconda loads very fast!
I stumbled upon this problem in two pc which had I5 / I7 processor(Win 10 / Win 8) with SSD.
This is how I fixed up the problem, now it takes around 20 second to boot Anaconda Navigator and all the apps) :
Open your prompt / CMD and type :
conda update conda
conda update anaconda
Also looks into your Antivirus :
they may isolate or block Anaconda because they could see it as a threat
Do a tour into your Antivirus/HIP/Firewall/Trusted applications and grant Anaconda full permission
I have one shortcut here,
Go to search bar and type jupyter or if you want spyder
Type spyder , so you can directly open it. No need to start anaconda
Here I saw
https://youtu.be/xNOg5VfCDWU
I started Anaconda Navigator with "Run as Administrator" privileges on my Windows machine, and it worked like a charm. Though it did ask me for Admin credentials for a couple of times while loading different scripts, but the response was <1 min, compared to 6 - 8 mins. earlier.
Search for Anaconda through desktop search or go to Cortana tool on the desktop toolbar and type Anaconda
On the Anaconda icon that shows up, right-click and choose "Run as Administrator"
Provide Admin credentials when prompted
This should hopefully work for Windows 10 users.
I as well had problem of Anaconda Navigator starting after long time ( 5-10 mins) on my Windows 10 machine. After defining proxy settings in .condarc file and OS ENV variable, it reduced to 1-1.5 min. See if it works for you :).
Changes in .condarc file
proxy_servers:
http: http://yourhttpproxy:port
https: https://yourhttpsproxy:port
Updating OS ENV variable like:
HTTP_PROXY= http://yourhttpproxy:port
HTTPS_PROXY = https://yourhttpsproxy:port
*This worked like magic especially if you are using a machine with vpn enabled & proxy
If you know the specific app you are running e.g R, Jupyter e.t.c just simply:
Go to the Windows search button
Type the name e.g Jupyter
Click on it and it opens the notepad!
After encountering the same issue (stucking at loading apps for 6 min), I tried the previous which didn't work. Furthermore, I have also tried to reinstall anaconda without any success.
After a while I tried to tape:"jupyter lab" (or jupyter notebook) on ANACONDA PROMPT. It works for me, now I do not need to start anaconda navigator and then going to jupyter lab or notebook.
Hope it will be helpful for some of you.
Related
when i open anaconda prompt or use "conda" in cmd its says access is denied and window prompt
"
this app can't run on your pc to find a version for your pc check with the software publisher"
and right now i also cant open anaconda navigator as well
Noted: I have been using the anaconda for a while with no problem before, however i miss-clicked sign out option instead of shutdown from window10 and it seem that the privacy is changed somehow, so far i have try changing environment variable and manage app execution alias but both of them did not solve the issue. Please share your solution if you experience this before thank you
The solution I found for it is the worst possible: I simply reinstalled Anaconda.
You can also try just getting conda.exe from the compiled source and replace it on Scripts folder instead of reinstalling it.
I have recently reset my laptop and installed Anaconda in it, and I tried to open JupyterLab but it gives me error
Error executing Jupyter command 'lab': [WinError 5] Access is denied
but it works fine when I try to open JUPYTER NOTEBOOK or try to open JUPYTER LAB with Anaconda as administrator.
I reinstalled Anaconda, and still it gives me the same error. Also it gives me the same error when I try to open JUPYTER LAB from Anaconda Navigator. Before resting my laptop it works fine for me, but now it's not. I tried to search my query on the web before asking here, but I did not get my answer.
I want to run JUPYTER LAB with normal Anaconda prompt
Additional details
My Anaconda is installed in C:\ProgramData (by default).
I didn't check the box “add to path” while installing Anaconda.
You can just run it with Python:
python -m jupyterlab
This should work from an Anaconda Prompt or even the command prompt (if it uses the Python in Anaconda). It does not require admin rights.
Workaround:
open anaconda navigator
click on the jupyter lab settings option and then remove it
Now open your anaconda prompt and type the following command: conda install -c conda-forge jupyterlab
now try to open it.
Proper solution:
If you have installed Anaconda for all users then you will face this issue (thanks to Alok Rajasukumaran, who pointed out this). The best way to solve this problem would be to reinstall this for only the current user.
But if you have a requirement to install for all users, then you can follow these steps:
run the terminal as an administrator
type jupyter lab
Optional (Automating launching jupyter lab with shortcut)
If you want to automate these steps, then you can create a batch file and assign a keyboard shortcut to it. Steps are as follows:
open notepad and write "jupyter lab" and save it as a .bat file
right-click on that file and click on create shortcut.
now open the properties of created shortcut file and in the "shortcut-key" section type any combination of keys you want to set
shortcut.
click on "Advanced" and select "Run as administrator"
Now you can initiate jupyter lab directly by typing your shortcut key and giving "yes" permission to the prompt.
Try to execute as an admin. Problem solved.
This solution is unsafe. When you execute a program with Admin this program has full permissions over the system.
The good solution is to create a new environment with your current system user (not root/admin). Activate this new environment and it would works
Usually, you don't have error in opening jupyter notebook command.
I usually type the jupyter notebook in the path bar in the explorer to open the notebook from that path directly — but as we are having an error in jupyter lab, I was only able to open jupyter notebook from there.
The solution for that is:
Just type jupyter notebook as usual in the command prompt or the path bar in explorer.
As soon as the browser opens automatically, change the URL from:
http://localhost:8888/tree to → http://localhost:8888/lab
Yes, just a one word change. tree → lab and...
Whoo! The jupyter lab is open right there you want it to be!
This is a problem that I see happening for Anaconda 3 installs for all users on Windows. Default (for single user) install seems fine. The permissions are somehow messed up during install. The solution I found is: explorer > right click anaconda3 folder > properties > security > advanced > change permissions > check "replace all child permission entries..." > OK.
This will take a while. After that uninstalling and reinstalling Jupyter Lab worked well.
The problem I had is that it installed the application in users/<your username>/anaconda3/.
To solve this I simply manually moved the folder with its contents to c:/program files/.
Avoid running as Admin due to security concerns. The fastest way is to create a virtual environment and install it there. This is what I did and it did not require any reinstallation of Anaconda or running it as Admin.
in anaconda prompt:
conda create -n myenv python=3.9
conda activate myenv
conda install -c conda-forge jupyterlab
jupyter lab
the last line will launch the jupyter lab.
I want to emphasize what was written only as a comment, because it is easier to find it as an answer than to browse all comments:
If you are using Windows and installed it for all users, you will get this error.
The easiest way is to reinstall Anaconda only for you.
Note: You may uninstall your previous (unsuccessful) installation (for all users) before reinstalling it for only one user (you). But it is possible to do it later, too.
What I did is to create a new environment in Anaconda Navigator. I had the default environment which was root, so I could launch applications only as root.
In the Anaconda Navigator Home screen click on Environments -> Create. Here is the guide to create a new environment https://docs.anaconda.com/anaconda/navigator/tutorials/manage-environments/
I recently broke my installation of Anaconda Navigator by using:
conda update --all -y
Apparently this is not uncommon, and it was a good excuse to reinstall Anaconda and start a new environment from scratch.
However, my new installation gives the following error, when trying to install any libraries:
I have tried:
Windows uninstall of Anaconda, followed by reboot, then reinstall
uninstall/reboot/install as admin
uninstall/reboot/manually delete various remaining folders in the User directory/reboot/reinstall
etc etc
All these methods produce this error, when trying to install libraries.
install libraries using Anaconda console works fine
there aren't any problems in Windows' PATH
conda is up to date
What's going on!?
If you install Anaconda as admin, then you need to launch it as admin every time you run updates.
You can enable this behaviour by default by navigating to the Anaconda launch shortcut, right-click > Properties, go to Shortcut tab, click Advanced, and tick 'Always launch as administrator'.
Have you tried to create a new environment? I had the same message in another situation and that's what worked for me.
maybe you can try to download package and install it by yourself .
here is a python package url https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
I just installed Anaconda for Python 2.7 on my laptop running 64 bit windows 8.
Once I finish installing Anaconda I go to open the Anaconda prompt and then I run conda update --all. This runs seemingly fine. When it's done running I close the prompt by hitting the close button in the upper right corner.
The issue comes in when I then go to open a new Anaconda prompt. I go to my start menu and open a new prompt. However, instead of the prompt that opened immediately after installing Anaconda I get a command window with these three lines:
>was unexpected at this time.
PATH > #IF NOT ""=="" #chcp > NUL
PATH >
An error seems to happen when I try to open my Anaconda prompt and then my path gets changed back to my default non-Anaconda command prompt path.
Could someone provide any help with this issue?
Thanks!
Facing the same issue. I have a habit of opening Jupyter notebook through anaconda prompt which I cannot do now. Fortunately, the jupyter notebook is opening through Anaconda navigator. Not sure what will I do to use "conda" commands until this issue is solved
Same issue, except that my installation is already 2 months old, suddenly noticing this today.
Olivier.
Open the anaconda prompt and change the anaconda prompt directory to Anaconda/Scripts and then you can use the conda commands.
After installing Anaconda(3 or higher) it includes Spyder. So it isn't known as an independent application. The problem with this kind of having Spyder is that Ubuntu doesn't allow to Duck it or add a Spyder shortcut on Desktop or add it as a Favorite. Therefore, every time I need to run Spyder, I have to run it through command line: $ spyder which is not the best and a fast way to run it.
On the other hand, I already have spyder and based on it's official website is not recommended to have it double installed: https://pythonhosted.org/spyder/installation.html
So I need a way which allows me to have a shortcut for my Spyder on Desktop or Favorites list or on Duck.
after searching a lot, here is what has worked for me: Copy any launcher from:
/usr/share/applications/.
Right click and go to properties, change the command line to spyder path:
~/anaconda3/bin/spyder or ~/anaconda/bin/spyder
Note: You can get the correct spyder path by typing: $ which spyder
Change the rest of the info like description and icon path as you like.
Save the file under something like spyder.desktop in order to set it as a desktop configuration file.
Now you have a app launcher which is connected to spyder (in Anaconda), copy the launcher to:
~/.local/share/applications/
Now the icon should pop up in your application menu.
Note: You should set the user as the owner. So this is the last step:
sudo chown <username> ~/.local/share/applications/spyder.desktop