fail to make anaconda spyder my default python platform - python

I am new to Python. I used Windows 7 System. I installed Python 2.7. Then I installed Anaconda. When I installed Anaconda, I selected the following.
Therefore, I think it Anaconda should be regarded as my default Python platform. However, when I checked cmd. The result is as following.
It seems that the default Python platform is still not Anaconda. HoW to change default Python platform to Anaconda Spyder? I tried to unload Anaconda and re-install it again, but it doesn't help. Thanks a lot.

Related

Different versions of Python, packages and many terminals in Anaconda

I am using Windows 7 and already installed Python version 3.8.10. After installing Anaconda 4.9.0, I open Jupyter Notebook and see that Python has a brother, version 3.8.3. Should I remove one?
Not only that, all Python packages in Jupyter have different versions than existing ones. I also find out now there are a lot more terminals: one is from drop-down "New", one is called Anaconda prompt and the last one is Anaconda Powershell prompt, not to mention the usual windows terminal.
Can anyone please give a simple explanation about this and please indicate which terminal should I use to install and upgrade packages for Jupyter Notebook?
Been a while I used windows, but I'll tell you this. Anaconda is a suite of tools and you don't have to use everything. Anaconda prompt and Anaconda Powershell are basically the same, it's just that the Anaconda prompt uses a Windows command prompt while the other uses a Windows Powershell as a base.
I'll say use the Anaconda prompt since it should feel more welcoming and easy to use.

Importing python package from conda environment in VSCode

enter image description here
Somebody please explain why I am not able to import package in VSCode even though I can do it in terminal both in VSCode and in system
Check out https://code.visualstudio.com/docs/python/environments
VSCode uses multiple python binaries. Each one has a seperate list of installed modules and packages. By default VSCode uses a custom Anaconda binary. When you invoke the python command, you are using a system wide install of Anaconda. You need to change the binary version of python VSCode is using, to point at the system-wide install, where you installed your modules

Why isn't Anaconda distribution functioning on Windows 10 64 bit?

I am having trouble getting the Anaconda distribution to function properly on my Windows 10 computer (64 bit).
I downloaded the 64 bit graphical installer for Python 3.7. I installed Anaconda for all users and it lives in this path:
C:\ProgramData\Anaconda3
(I also tried to install for “just my user” but it didn’t help.)
The issue is my computer does not recognize Anaconda. When I open my command prompt and enter in “conda” , “jupyter notebook”, or “python” - I get an error message below:
'conda/jupyter/python' is not recognized as an internal or external command,
operable program or batch file.
I uninstalled and reinstalled and selected the checkbox during the setup wizard to “add Anaconda to my PATH environment variable” and I still received the same error message when using the command prompt to locate Anaconda.
I then manually attempted to add the following paths to my PATH environment variable (for both user and system variables):
C:\ProgramData\Anaconda3
C:\ProgramData\Anaconda3\Scripts
C:\ProgramData\Anaconda3\Library\bin
That still did not work. I restarted my computer and tried it again - did not work.
I also cannot use Anaconda Prompt or Anaconda Navigator. I understand that they are supposed to be available through the start menu after installation, but they are not. I have also tried to locate them through the Command Prompt but they are not there either.
Overall, I have restarted my computer and reinstalled Anaconda numerous times and nothing has worked. I’m not sure what to do next.
I have discovered the answer! It seems that my virus software (McAfee Endpoint Security) was blocking Anaconda from working correctly. The workaround was to install an older version of Python (I used the Dec. 2018 version) from the Continuum repo here.
open up a windows cmd prompt and try set PATH=/c/programdata\anaconda3:$PATH It is important to note that the exe file for Anaconda is _conda.exe. So to check if this was successful type which python and which _conda into the command prompt.
I tried to install Anaconda 3.7 in windows 10 and, for some reason, only the 32bit version worked. For the 64bit I can't find the launching icons and conda commands are not recognized in the cmd.
Downloading a previous version of the anaconda distribution might do it.
Check out the archive to find and download your choice of preference.
I installed the earlier anaconda32020.02 64 bit from the archive and it worked fine.
I'll update to 2020.07 at a later(debugged) date.

How I can delete python 3.4 if i use just anaconda python

I have a specific problem with python. I have on my ubuntu two versions python3.4 and python3.6(from anaconda). I want use just anaconda pythoncurrent version
But when i run script i have some problems with another python version
another version
How i can safe delete useless python 3.4.6?
sudo apt-get remove python3.4
anaconda should have set python3 as default python3.6 version
You should probably not delete Python3 from your system, even if you have Anaconda installed, since there might be system software that:
was not tested with subsequent versions of Python;
might struggle finding Python from Anaconda.
What you should do instead is configure your IDE / environment to run Python script with Anaconda, e.g. by setting your PATH variable to point to your anaconda/bin directory or similar.
If you are using PyCharm, as it seems from the screenshot, you could set up your project to run the Anaconda Python without modifying your other command-line settings.

anaconda python running py file

I downloaded python anaconda 2.7.
I used to work with the regular python from python.org, but I was asked to work with anaconda.
any how, I have 2 problems.
right click ->edit with idle (does not exist).
can't run py file as a program (like cmd)/.
After installing Anaconda, mostly the path environment variable is overridden hence the system now refers to the Anaconda python interpreter, a quick fix is to correct the path environment (this depends on the type of OS you're running).

Categories