Anaconda||install报错:CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghu

1. Problem description

        Today is another good day (ง •_•)ง it's time to start learning Brick

        Open Anaconda and install jupyter notebook in your own virtual environment. After running for a few seconds, it will report an error. The content of the error is still very long (I can't understand it anyway)

        CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/win-64/repodata.json><br>Elapsed: -<br><br>An HTTP error occurred when trying to retrieve this URL.<br>HTTP errors are often intermittent, and a simple retry will get you on your way.<br>SSLError(SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),),)<br>

        But it's not a big problem, because you saw this error recording tutorial, indicating that the problem has been solved~~~~ (correct nonsense)


2. Solutions

        Open the User folder in the C drive of the computer (named as user in the figure), open the .condarc file in the Administrator folder, select the file and right-click to open it with Notepad

 2.1 Solution 1

        After the .condarc file is opened with Notepad, the content is as shown in the figure below. The content displayed after opening by different people may be different, but it has little effect~~

        You can try to delete - default first , remember to save, then exit, return to the Anaconda Navigator interface to install jupyter notebook, maybe the bug will be gone~~~

 2.2 Solution 2

        Hahaha, I rolled over again, the problem is not solved

        According to the various answers searched on the Internet, I decided to try changing https to http again

        save, exit, install again

         Problem solved, nice(●'◡'●)~~~~~


Remember a follow-up (not very relevant to the topic~

        Didn't the previous article mention that bloggers use the Anaconda Navigator interface to install jupyter notebook, but I don't know why the jupyter notebook launched in the interface will show that the kernel cannot be connected (storm crying (; ´д`) ゞ

        报错:A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration.

        According to intuition (confidence of honey), maybe a certain installation file is missing? Maybe maybe maybe~

        So I opened the command line interface Anaconda Prompt, entered my virtual environment, and installed it again using the command line pip install jupyter notebook , but the result was still not working T_T

        I cried (I installed hhh), and then I installed it with conda install jupyter notebook , and it worked

        pip installation does not work, conda installation will do? Sometimes the solution is so mysterious, and I don't quite understand why. I hope that one day in the future, I can have an epiphany.

        love & peace, this article (end)

Guess you like

Origin blog.csdn.net/Inochigohan/article/details/121176768