How to integrate a newer release of python (2.7.18) into Anaconda Version 2019.10 with Python 2.7 (2.7.16)?

Question:

It seems that Anaconda 2019.10 is the latest Version with python2 integrated in it.
This distribution has "python 2.7.16" integrated.
How can I integrate a newer release of python (2.7.18) into Anaconda Version 2019.10?

I have the installation for "python 2.7.18" (python-2.7.18.amd64.msi, around 20MB).
If I install this one also, what parts of the installed files would I have to copy to the Anaconda Destination path?

Asked By: LightningJack

||

Answers:

Well, it has been quite a while for this one, but better late than never …

Someone from the administration team in the company has implemented a package server as a usable mirrored repository.
They are doing extensible security checks on new packages before sharing it on this package repository.

So, with a little "batch routine" for implementing this new environment our users are now able to implement new packages on their client machines, without even having administrative rights on their machines. 🙂

For those of you who are interested in this little "batch routine", here it comes:

For configuration you first start an "Anaconda Prompt" and enter the following commands one after the other:

conda config --set ssl_verify false
conda config --set report_errors false
conda config --set channel_alias https://someserver.domainname.corp/repository
conda config --append channels py-anaconda/
conda config --append channels py-snapshots/
conda config --append channels py-releases/
conda config --append channels py-conda-forge/
conda config --append channels py-continuum/pkgs/main/
conda config --append channels py-continuum/pkgs/free/
conda config --append channels py-continuum/pkgs/r/
conda config --append channels py-continuum/pkgs/pro/
conda config --append channels py-continuum/pkgs/mro/
conda config --append channels py-continuum/pkgs/msys2/
conda config --append channels py-continuum/pkgs/mro-archive/
conda config --append channels py-continuum/pkgs/archive/
conda config --remove channels defaults
conda config --append repodata_fns repodata.json
conda config --append repodata_fns current_repodata.json

Of course you have to replace the "someserver.domainname.corp" with your own servername on your company …

Since you do not have write permissions in the standard Anaconda environment, you must now create a new environment and activate it. To do this, enter the following commands ("name" stands for the name of the new environment):

conda create -n name
conda activate name

Now you can install new packages in this new environment using "conda install package name".

That’s it – have fun 🙂

Answered By: LightningJack
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.