I have created an environment and have python and all other packages installed in it. Openssl is also available when I check using conda list. But unfortunately, I realized pytorch is missing when I check the list of installed packages. When I try to download the pytorch I get the following error.
CondaSSLError: Encountered an SSL error. Most likely a certificate verification issue.
Exception: HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))
I think this problem is related to ssl updates
run the below code in terminal and try again;

conda update --all --no-deps certifi
Error with openssl when trying to install pytorch