The solution to the problem that the virtual environment cannot be successfully created using Anaconda Navigator

1. Problem description

       When using anaconda Navigator to create a virtual environment, configure the initial name and python version. After successfully fetching various packages, a cmd black window flashes during the process of loading various packages, and then the new environment name that appears in the list on the left disappears automatically . , virtual environment creation failed.

2. Solution

Method 1: Update the source configuration of anaconda (I tried this method, but it did not solve the problem)

For specific steps, refer to the content of this blog: (9 messages) Solve the problem that anaconda fails to create the environment_H_Cisco's blog-CSDN blog_Conda fails to create the environment

Method 2: Open the cmd window with administrator privileges (input cmd in the window search window, choose to open as an administrator), enter the following command, and update the conda version (the pro-test problem has been resolved)

conda update conda

       Because usually when I use the cmd window conda to install the feature package, every time I will be prompted that my conda version is too low, so maybe this method is more suitable for my problem.

Reference link: Solve Anaconda Navigator to create a new environment and report a warning but the creation is unsuccessful, and the command line is not created-pudn.com

Method 3: Open the cmd window as an administrator in method 1, and enter the following command to manually create a virtual environment (pro-test can be successful )

conda create --name my_first_env python=3.6

 my_first_env is changed to the virtual environment name you want , and the later version of python is changed according to your own requirements

Guess you like

Origin blog.csdn.net/Er_Studying_Bai/article/details/128680981