First, install Anaconda
Solve the anaconda installation time error
win10 environment installed anaconda3, occur when importing a virtual environment through the implementation of conda pycharm or update command ssl error given as follows:
Collecting package metadata (current_repodata.json): failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/current_repodata.json> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. SSLError(MaxRetryError('HTTPSConnectionPool(host=\'mirrors.tuna.tsinghua.edu.cn\', port=443): Max retries exceeded with url: /anaconda/pkgs/free/win-64/current_repodata.json (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
Solution:
Try copying these files from Anaconda3/Library/bin to Anaconda3/DLLs : libcrypto-1_1-x64.dll libssl-1_1-x64.dll
Translation:
Copy path "Anaconda3 / Library / bin" files to the following path "Anaconda3 / DLLs": libcrypto-1_1-x64.dll for libssl-1_1-x64.dll
Second, the installation vscode
Third, set in a virtual environment in vscode
Ctrl + shift + P to open the preferences, set the virtual environment
The pythonPath virtual environment instead of the path, such as my virtual environment named "tensorflow"
"python.pythonPath": "D:\\Anaconda3\\envs\\tensorflow"
"python.pythonPath":
"D:
\\
Anaconda3
\\
envs
\\
tensorflow"