Anaconda Navigator does not open (Windows 10) - python-3.x

I just downloaded and installed Anaconda3 on windows 10 platform.
Apparently, the installation process finished successfully however I can't open Anaconda Navigator.
What I'm doing is just clicking on "Anaconda Navigator" icon from start menu.
After a while an empty console window pops up twice, then it desappears immediately without showing an error message and nothing seems to happen after that.
I've been reading about similar errors and found out that running this command, conda update --all might solve the problem.
I tried it out, but ended up getting a network connection problem for a particular URL.
But my internet connection is working fine since I'm actually able to access that URL from the browser and get a response.
It's worth mentioning that I've already uninstall Anaconda3 and set up the following user environment variables.
Any help would be appreciated, thanks in advance!

Finally found a solution to this problem, I recommend you to read the official documentation and follow the steps described there in order to make sure everything was installed correctly.
Check out this article:
https://docs.anaconda.com/anaconda/install/verify-install/
After trying to starting up Anaconda Navigator from the console I got this specific error that helped me to get a final solution.
Basically I just had to move some files within anaconda3 installation folder from one path to another.
Navigate to %ANACONDA_HOME%\Library\bin, there you will find the files listed below
libcrypto-1_1-x64.dll
libcrypto-1_1-x64.pdb
libssl-1_1-x64.dll
libssl-1_1-x64.pdb
So, just move them to this path: %ANACONDA_HOME%\DLLs
Give it a try one more time and you will be able to run it.
Note:
%ANACONDA_HOME% refers to Anaconda3 installation folder in your computer.
This answer is based on this link: Anaconda navigator not launching windows 10 (Spyder as well)

Related

PyCharm Requires Login When Ran as Root

The code inspection is not working properly on my Pop!_OS 21.04 x86_64, so I checked updates and realized that my PyCharm is actually out of date, but to update it I need to run PyCharm as root.
But, when I go to where PyCharm is located and run sudo ./pycharm.sh, It's like it is a fresh install and wants me to login.
I have come across this issue in other apps too, where if I run it as root, it uses a different directory for config etc.
How do I get around this? Thanks in advance.

Anaconda Prompt(Anaconda3) does not recognize files in a directory

I took to heart the message that support for anaconda2 was dropped. I installed anaconda3 and used 2to3 to convert my *.py codes. Everything seemed to work as expected. I have several 2 line bat codes that cd to a particular directory and then call python to execute a particular *.py code in that directory. By loading Anaconda Prompt(Anaconda3) and invoking the bat file I could run pythons in that directory as expected.
Then, a couple of days ago, I made such a run and got an error message saying the *.py file could not be found. I immediately looked in the directory and the python file was there as expected. I then did a dir command in Anaconda Prompt(Anaconda3) and found that almost no files in the directory were listed. This was happening on my windows 10 laptop.
On my desktop, everything continues to work as expected. Are there any suggestions as to what could cause such a problem and how to fix it.
Thanks,
Mack Elrod
Responding to the request for additional information, I have a bin directory that is in path. In bin\MackData.bat is
c:
cd %USERPROFILE%\Documents\Medev\MackData
copy sugarhist.png sugarhist.old.png
python MackData.py
When I open Anaconda Prompt(Anaconda3) and enter MackData I get
(base) C:\Users\Mack>MackData
(base) C:\Users\Mack>c:
(base) C:\Users\Mack>cd C:\Users\Mack\Documents\Medev\MackData
(base) C:\Users\Mack\Documents\Medev\MackData>copy sugarhist.png sugarhist.old.png
1 file(s) copied.
(base) C:\Users\Mack\Documents\Medev\MackData>python MackData.py
python: can't open file 'MackData.py': [Errno 2] No such file or directory
(base) C:\Users\Mack\Documents\Medev\MackData>
But MackData.py is a python file in the directory MackData.
This code worked on this laptop until a few days ago and continues to work on my desktop computer. I can, of course, publish MackData.py but that seems irrelevant. The point is that Anaconda can't find it.
Thanks,
Mack
I must submit a sincere apology to this community. I have determined my problem and Anaconda is not responsible in any way. I thank all of you for you concerns and comments.
For any who might be interested I will give a brief outline of what happened. First, I installed Anaconda3. Several days later my directory, MackData, was moved to a new location. I conjecture that happened by me inadvertently letting my hand drag on the touch pad. Then, not knowing the location had changed I updated my laptop from my desktop. My update program not finding MackData where expected recreated it and put only the most recently changed files from the desktop into the new MackData. New but in the correct location. Then of course running my script in the Anaconda3 prompt failed. Doing a dir in the Anaconda3 prompt showed only a few files were there. I then went to Windows File Explore and looked at MackData and saw all of the expected files. I used the quick access feature which unknown to me pointed to the old directory in its new location.
That is not intended to be an excuse but only as an explanation. Again, I do apologize to the community.
Mack Elrod
I'm pretty sure newer anaconda launchers users different environment paths, and not even windows ones.
I suggest either checking the environment path within the anaconda launcher and configurations or, a better solution in my opinion, run these scrips using the regular python engine, without using anaconda (simpler, more determinant and works within your standard environment)

Unable to get python3 to work in Git on Windows10

I have installed the latest windows 10 version of Git v 24 and use the standard recommended install as shown on a number of websites including https://zarkom.net/blogs/how-to-install-git-and-git-bash-on-windows-9140
he has said that his install recommends for vers 19 are still ok for v24 and just click on Next etc. I have had this confirmed with other help guides but on install I type in after the $ sign either python and or python3 and nothing happens but I can see when running a test file the bash:
/c/Users/nigel/AppData/Local/Microsoft/WindowsApps/python3: Permission denied
I don't have python3 installed there but in standard C:\Users\nigel\AppData\Local\Programs\Python.
I have powershell running ok and am using Sublime Text 3 ok I can run code I prepare in Powershell version 5.6.. whatever it is now standard install part of Windows10. No issues running Python IDLE either.
When I search the reg with regedit and type in git bash I cannot trace this odd link to Microsoft/*/Python as above but in that folder there is an odd link not seen previously not sure what installed that other than sometime ago I might have started an instll of python via M store but sure I didn't but this odd python language server may have got installed through something else?
C:\Users\nigel\AppData\Local\Microsoft\Python Language Server\stubs.v1 is all I can find but in windowapps I found 0kb of a couple of files that are odd ie python.exe and python3.exe and size says 0kb.
I cant seem to find how to amend git so that it stops looking in this odd location and looks in correct folder as stated above ie C:\Users\nigel\AppData\Local\Programs\Python
I would appreciate any help although I am using powershell and ST3 ok on my python courses on UDEMY. I have tried to look at environmental path etc but cant see any reference to this odd path link with windowapps ? I have amended path ok previously for other editors or ensured that the path was pointing to correct python. The only other version of python I have is with Jupyter/ananconda but that is self contained my word ie it doesn't fire up unless I am in Anaconda or jupyter hope that makes sense which I use on another course ie bootcamp course

Spyder external system terminal does not work (Python3.6)

I am not sure if this is a right place to ask this type of questions. I am a python beginner or programmer overall at this point. I am using Spyder to use python 3.6 (via Anaconda). I wrote a code that works fine when I run it in the current Ipython console. But I really need to run it in an external system terminal. In order to do so, I chose the following path: Run-> configuration per file -> execute in an external system terminal. That has been working fine. But now it refuses to work!
I validated that there is nothing wrong with my code by running something simple and saw that running via external system terminal does not work.
So far I deleted Anaconda and re-installed it. Could someone suggest what I should be looking for to diagnose the problem and fix it?
Thanks!
I had the same problem and noticed that unless the Working directory settings is set to "The directory of the file being executed", it won't work.
You can change it in "Run" > "Run configuration per file".

Package Control in Sublime3 not working?

Note: I´ve searched for sublime here at the forum first, in order to post a question, because I wasn´t sure if this question was adequate for this specific forum and wanted to compare it with other posts. If it shouldn´t be here, please tell me so, and I´ll gladly close it here and open it in any other stackoverflow´s forum. Thanks.
I´ve just installed sublime3. After that I´ve installed package control.
But even when I try and install some packages using package control not all packages get installed, even when I get the "successfully installed" message at the bottom of the window.
To install a new package I go to preferences/package control/install package, and after getting the "successfully installed message" I go to /list packages and it´s not there.
I realised that maybe that´s because some packages are not compatible with sublime 3 (even there it shouldn´t be the successfully installed message there).
So, I´ve tried the latest sublime3 version of emmet, but it seems that´s not working (I´ve tried some shortcuts without any success). So I´ve watched Chris Coyer screencast to check out if I´ve missed something, but it still won´t work.
I´ve tried installing it manually: I´ve went to C:\Program Files\Sublime Text 3\Packages (I´ve installed the x64 package, but for some reason it´s not installed into \Program Files (x86)).
And then I copy/paste the unzipped folders of /emmet-sublime-master and /PyV8 (I´ve tried naming the folder just emmet).
And still, it won´t work. This kinda happened to me with a lot of packages, I´ve installes several of them, and when I go to preferences/package control/list packages, I get only 3 of them.
I came across this issue as well. This thread (https://github.com/wbond/package_control/issues/874) directed me to delete the entry for Package Control under "Ignored Packages" in my User Settings File. Once that was deleted, I restarted, and it worked as expected.
In SublimeText go to Preferences -> Settings. In the opened file Preferences.sublime-settings remove Package Control from ignored_packages list (see below). Save the file and restart Sublime.
{
"font_size": 11,
"ignored_packages":
[
"Vintage",
"Package Control" <---- REMOVE
]
}
For me, Package Control was already removed from ignored_packages, so that didn’t help. But the Sublime Text console held messages which indicated the problem. (Press Ctrl+` to open the console.)
PermissionError: [Errno 13] Permission denied: '/home/myuser/.config/sublime-text-3/Cache/Package Control/merged-ca-bundle.crt'
And changing ownership on the Package Control directory allowed me to use Package Control again:
chown -R myuser:myuser '/home/myuser/.config/sublime-text-3/Cache/Package Control/'
For me, after try to remove and reinstall the Sublime and verified the ignored_packages, I installed python and restart the sublime. So it worked.
In Terminal:
sudo apt install python python3
I am using Ubuntu 20.04.

Resources