How to install python3.9 with conda?

前端 未结 3 1040
长发绾君心
长发绾君心 2020-12-07 00:31

I\'m trying to install python 3.9 in a conda enviroment. I tried creating a new conda env using the following command,

conda create --name myenv python=3.9


        
相关标签:
3条回答
  • 2020-12-07 01:14

    Update 2

    You can now directly create python 3.9 environment using the following command

    conda create -n py39 python=3.9
    
    py39 - environment name
    

    Update 1

    Python 3.9 is now available in conda-forge.

    To download the tar file - https://anaconda.org/conda-forge/python/3.9.0/download/linux-64/python-3.9.0-h852b56e_0_cpython.tar.bz2

    Anaconda Page - https://anaconda.org/conda-forge/python


    As pointed out in the comments, python 3.9 is not yet there on any channels. So, it cannot be install yet via conda.

    Instead, you can download the python 3.9 executable and install it.

    Once the installation is done, a new executable will be created for python 3.9 and pip 3.9 will be created.

    Python:

    python3.7          
    python3.7-config   
    python3.7m         
    python3.7m-config  
    python3.9          
    python3.9-config
    

    pip

    pip      
    pip3     
    pip3.7   
    pip3.8   
    pip3.9   
    pipreqs
    

    In order to install ipython for python 3.9,

    pip3.9 install ipython
    
    0 讨论(0)
  • 2020-12-07 01:15

    On 6-Oct-2020, Python 3.9 was made available on conda-forge: https://anaconda.org/conda-forge/python. However, most of the other packages (including some of the essentials to create a basic environment) didn't explicitly support Python 3.9 yet.

    However (as of 15-Oct-2020), the basic dependencies appear to have been fixed and the following command now works:

    conda create -c conda-forge python=3.9 -n py39-demo
    
    0 讨论(0)
  • 2020-12-07 01:15

    You can now simply just run

    conda create --name myenv python=3.9

    And it will create your python 3.9 virtual environment simply.

    0 讨论(0)
提交回复
热议问题