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.
This can be installed via conda with the command conda install -c anaconda python=3.7 as per https://anaconda.org/anaconda/python. Though not all packages support 3.7 yet, running conda update --all may resolve some dependency failures.
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...
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 :
conda create --name py365 python=3.6.5 --channel conda-forge
conda activate py365
But the activation won't be permanent, you will need to activate each time you start the anaconda prompt
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 !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With