NOTE: I found many articles online saying to update the PATH variable, but Anaconda actually recommends against doing so and running the two commands above instead, which they state in their documentation. When you open it back up again, you should see the little (base) prefix to tell you that you’re in the default base environment in Anaconda and you are all set! ? (base) ~ % Here’s the second line I typed in the Terminal (line 2 of 2): conda init zshĬlose the Terminal window. If your anaconda3 folder happens to be somewhere else after your install, like the home directory for example, you would type source ~/anaconda3/bin/activate instead, with ~ meaning home directory. NOTE: I did the Graphical Installation of Anaconda and it put the anaconda3 folder within the /opt folder. Here’s what I typed in the Terminal to resolve the error (line 1 of 2): source /opt/anaconda3/bin/activate Here’s what my Terminal looked like when I got the error: ~ % conda list zsh: command not found: conda However, zsh is the new default shell on MacOS and you need to run two extra lines of code to make things work. You would think that with a successful installation, conda commands should work in the Terminal. The ProblemĪfter the install, I went to the Terminal, typed conda list and got my first error on my new laptop. At this time, vscode will no longer check the update status.Screenshot of Finder Window by Author 2. If you find it troublesome and want to avoid vscode problems caused by network reasons, then you can change the version information in the above code. If you print out the accessible vsdata at this time, it is Of course, if you find that the vscode official website can be accessed normally the next day, just change the commented code back, and everything will be back to normal! ! ! Jupyter Notebooks are a web based UI enabling data scientists or programmers to code interactively by creating. The only upset is that you cannot start vscode in the graphical interface of anacona-navigator. The Tensorflow package available in the Anaconda -Navigator is Tensorflow 1.10, it is, therefore, a better option to install using the terminal command because this will install Tensorflow 1.12. In fact, you only need to run it once, either in Anaconda Prompt or in the terminal of vscode In, the effect is the same. Note that the sentence "conda activate torch" is written twice. So how to start vscode in a specific environment at this time, for example, the name of the environment I want to start is torch, then,Īnaconda Prompt => conda activate torch => code (Start vscode, the general installation directory can be automatically identified, if you can't find it, search it)Īfter entering the interface, start the terminal of vscode, and also conda activate torch. Let's do this first! I really don't like these convulsions, it takes time! Anaconda can start normally, but vscode still cannot appear in the graphical interface. Vsdata = self.vscode_application_data() # Check vscode version If apps_vscode_enable and self.is_vscode_available(): There is no information about the version of vsdata, so vsdata should be inaccessible at this time because something went wrong.ĭ:\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 888 says, This is really strange, so I opened the original code and looked at it. t_applications(applications, packages)įile "d:\Anaconda3\lib\site-packages\anaconda_navigator\widgets\tabs\home.py", line 204, in set_applicationsĪpps = _apps(applications, prefix=self.current_prefix)įile "d:\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 888, in process_appsĪttributeError: 'str' object has no attribute 'get' 20:27:19,492 - ERROR download_api._get_url:416Įxpecting value: line 1 column 1 (char 0)įile "d:\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 539, in setupįile "d:\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 576, in post_setupįile "d:\Anaconda3\lib\site-packages\anaconda_navigator\widgets\tabs\home.py", line 169, in setup Suddenly, the anaconda-navigator interface fails to start, crashes back, and opens with prompt.
0 Comments
Leave a Reply. |