I have installed anaconda latest version in my LINUX MINT and it's expected that the ANACONDA version of python to launched when I type python/python3 on the terminal but it only start the default ones. How to set it to launch the Anaconda version. conda is installed and is verified by writing conda on the terminal
This is probably because it can't find python in your anaconda folder. /home/username/anaconda3/condabin isn't a valid folder name (at least, not on any anaconda installation I've seen), so just rename condabin to bin. If you edit your $HOME/.bash_profile, it should look something like:
# added by Anaconda3 5.0.1 installer
export PATH="/home/username/anaconda3/bin:</rest/of/things/here>:$PATH"
Restart your terminal and try python again
Related
I'm new to the programming environments.
Last year, I had a course where we installed (without understanding what we were doing) miniconda with python 3.7 and jupyter notebook. This year I need anaconda so I installed it with the latest version of python. My question is: will there be a conflict between anaconda and miniconda if I use the shell commands? When I type "jupyter notebook" in the shell, will it open with miniconda which I installed first or anaconda?
Are you on a linux system?
You can try with
type jupyter-notebook
This will show you where the binary is located. For example ~/miniconda3/bin.
The path of the bin-folder of your anaconda/miniconda installation is usually added to your path-variable in the ~/.bashrc file.
PS:
You can find out which version of python/python3 you are using by typing
python --version
or
python3 --version
I've installed python 3.8.2 and now want to install Anaconda, but there are two versions for macOS: installer for python 3.7 and installer for python 2.7
Does that mean I need to downgrade from 3.8.2 to 3.7.0 for Anaconda? or is the Anaconda installer 3.7+?
Cheers!
https://www.anaconda.com/distribution/#macos
A Python installation from python.org and an Anaconda installation are 2 completely different things and they can live side by side. You don't need to do anything with your existing installation. However, stick to the Anacoda default settings: Don't add Python to your PATH, as this will probably conflict with your other installation. And let conda intialize your command shells. This will add ../Anaconda3/condabin to your PATH and the only thing you need to do before using Anaconda Python is to activate Anaconda, either by using the Anaconda prompt or from your shell via
> conda activate
(base) > python
You can tell from the prefix (base) in the command prompt that Anaconda has been successfully activated.
Anconda prompt:
where conda
C:\Users\shail\AppData\Local\Continuum\anaconda3\Library\bin\conda.bat
C:\Users\shail\AppData\Local\Continuum\anaconda3\Scripts\conda.exe
C:\Users\shail\AppData\Local\Continuum\anaconda3\condabin\conda.bat
where python
C:\Users\shail\AppData\Local\Continuum\anaconda3\python.exe
C:\Users\shail\AppData\Local\Microsoft\WindowsApps\python.exe
So i went to environment variables and added path of anaconda and python. Path added:
C:\Users\shail\AppData\Local\Continuum\anaconda3
C:\Users\shail\AppData\Local\Microsoft\WindowsApps
C:\Users\shail\AppData\Local\Continuum\anaconda3\Library\bin
C:\Users\shail\AppData\Local\Continuum\anaconda3\Scripts
C:\Users\shail\AppData\Local\Continuum\anaconda3\condabin
But when I type on windows cmd:
C:\Users\shail>conda --version
conda 4.8.3
C:\Users\shail>python --version
C:\Users\shail>
So there is no response from windows cmd on version of python, so I guess it is not recognising python. I mainly need to use pip command, for that I need python first. I dont have python separately installed on system. It is inside my anaconda. On some sites it is written I should not download python separately and add its path because that will confuse the computer since there will be 2 pythons; one from Anaconda and one downloaded separately. So sticking to the anaconda version of python.
How to get my anaconda version of python recognised ?
pip worked for me after restarting my computer. Though python is still not returning any output but pip is working fine.
Yesterday I uninstalled my Python 3.6 and installed Python 3.7. I simply ran the executable and followed the prompts. Here is a screen shot of my Programs and Features in my Control Panel.
However, when I check the version in the command prompt, it seems like version 3.6 is still running!
If you have an Anaconda Python installation, you can either upgrade it to your chosen version of Python or create a new conda environment with the version you want.
To see what environments you have set up, do conda env list
To upgrade Python in an environment myenv, do activate myenv then conda update python (to get the latest version) or conda install python=x.y.z (to install version x.y.z, assuming it's available from your conda channels)
You probably didn't completely uninstall your old python version and windows is still pointing to the old installation. Edit your PATH and point your new python 3.7 directory.
Go to My Computer/This PC --> right click --> properties --> advanced system settings --> environment variables --> PATH
You should see a path directory that looks something like this:
C:\Users\Programs\Python\Python36\
Change that directory and point to your python 3.7 installation.
If you want you can keep the old installation of python 3.6 on your computer, it's not necessary to uninstall it and you can work on projects using older python versions when needed.
It looks like you have a Python executable in your PATH from a Anaconda installation (hence the Anaconda Inc at the end of your version number).
You have a few options here:
You can either find the Anaconda installation and remove it (echo %path% into the command prompt may help).
Edit your PATH to make sure that your Python 3.7.3 installation is called first before the Anaconda install.
Upgrade your Anaconda installation to the latest version that uses Python 3.7.
When you install anaconda, a box is automatically checked to make your computer see the version of python installed with conda as the primary version, you could probably uninstall conda or change you system env path taking conda off it.
I was working on Tensorflow object detection project, for this I am using Anaconda 3 with python 3.7 but I am facing some issues while running object detection demo, I read couple of posts here on stackoverflow and found that it can be solved by using Anaconda with python 3.6 but this version is not available at Anaconda's download page, there are only two versions i.e for Python 3.7 and Python 2.7 but I need for Python 3.6.
Any help would be great.
As suggested here, with an installation of the last anaconda you can create an environment just like Cleb explained or downgrade python :
conda install python=3.6.0
With this second solution, you may encounter some incompatibility issues with other packages. I tested it myself and did not encounter any issue but I guess it depends on the packages you installed.
If you don't want to handle environments or face incompatibilities issues, you can download any Anaconda version here: https://repo.continuum.io/archive/. For example, Anaconda3-5.1.0-XXX or Anaconda3-5.2.0-XXX provides python 3.6 (the suffix XXX depends on your OS).
To know which python is provided in an anaconda package, you can visit the Release notes page. It provides the updates for the all anaconda versions. Find yours and look for the line
python A.B.C -> X.Y.Z
where A.B.C is the previous version and X.Y.Z is the updated python version.
This link has history version about Anaconda, you could download from this website.
At version 5.3.0 python 3.6 support was dropped...
Anaconda 5.3.0 (Sept 28, 2018)
User-facing changes
The Anaconda3 installers ship with python 3.7 instead of python 3.6
python 3.6.5 -> 3.7.0
https://docs.anaconda.com/anaconda/reference/release-notes/#anaconda-5-3-0-sept-28-2018
The last version released with a python3.6 variant was version 5.2.0
Anaconda 5.2.0 (May 30, 2018)
python 3.6.4 -> 3.6.5
https://docs.anaconda.com/anaconda/reference/release-notes/#anaconda-5-2-0-may-30-2018
The links to this latest version are...
Anaconda3-5.2.0-Linux-ppc64le.sh
Anaconda3-5.2.0-Linux-x86.sh
Anaconda3-5.2.0-Linux-x86_64.sh
Anaconda3-5.2.0-MacOSX-x86_64.pkg
Anaconda3-5.2.0-MacOSX-x86_64.sh
Anaconda3-5.2.0-Windows-x86.exe
Anaconda3-5.2.0-Windows-x86_64.exe
You can download the 3.7 version and then use
conda create -n mygreatenvironment python=3.6 <add other packages here>
and then:
conda activate mygreatenvironment
This environment will use Python 3.6.
Following this answer, this solution is working for me on windows 10,
From the anaconda prompt :
Create a custom environnement and specify the repository channel to find the version (in my case 3.6.5)
conda create --name py365 python=3.6.5 --channel conda-forge
Activate the new environment
conda activate py365
But the activation won't be permanent, you will need to activate each time you start the anaconda prompt
Create a shortcut to Anaconda prompt with your choosen environment
In order to activate permanently your custom environment, you can create a anaconda prompt shortcut which new target.
Go to
C:\Users\Your_Name\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)
And Copy and rename the file Anaconda Prompt (Anaconda3) to Anaconda 3.6.5.
Then right-click on the new file and click on "Properties".
Then change the target :
%windir%\System32\cmd.exe "/K" C:\Users\Your_Name\Anaconda3\Scripts\activate.bat C:\Users\Your_Name\Anaconda3
to
%windir%\System32\cmd.exe "/K" C:\Users\Your_Name\Anaconda3\Scripts\activate.bat C:\Users\Your_Name\Anaconda3\envs\py365
(be aware to change "Your_Name" by your "real" name )
Finally, if you go to your Windows Start menu, you will see your new shortcut "Anaconda 3.6.5" which launch the Anaconda Prompt with your choosen environment !
You can download anaconda from the archives.
The path I followed was:
Anaconda Documentation>Anaconda Distribution>Installation-(in page)System Requirements>archive
I was looking for installation instructions on my CentOS machine when I stumbled upon the question.
For installing python 3.6 on windows go to this link