Change the Python Version in anaconda

Asked 2 years ago, Updated 2 years ago, 100 views

I tried to match the local and remote python versions to publish the application on the web, but it didn't work.I am using python 3.9.7 which comes with anaconda, but I would like to match the version to python 3.6.9 on the remote.I don't know what to do after downloading the file from the site below.This is a basic question, but I would appreciate it if you could tell me.Thank you for your cooperation.

https://anaconda.org/anaconda/python/files?version=3.6.9

python anaconda

2022-09-30 19:49

1 Answers

I heard that you are using Python with Anaconda, so let's say you have Anaconda (base).
The following is a command line operation, but it should be possible with the GUI.

  • List of Pythons
    ($ is a UNIX OS prompt and does not need to be typed.to distinguish it from the output)
$conda search python
(Partial Excerpt)
python 3.6.7 h0371630_0 pkgs/main           
python 3.6.8 h0371630_0 pkgs/main           
python 3.6.9 h265db76_0 pkgs/main           
python 3.6.10 h0371630_0 pkgs/main           
  • Create an environment (name is py369 here (can be another name))
$conda create-npy369 python=3.6.9
  • Current environment list (probably something like this)
$conda info-e
# conditions:
#
base*anaconda3
py369 anaconda3/envs/py369
  • Usual use
$conda activate py369

(when using base (3.9.7))
$ conda activate base


2022-09-30 19:49

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.