1

I have set up a new environment on conda.

Once it was created, I disabled threading so that the performance of the software I would be using will be maximised using:

conda env config vars set OMP_NUM_THREADS=1
conda env config vars set NUMEXPR_MAX_THREADS=1

I then tried to install the software and got the error

CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to
download and install packages.

Exception: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

I though this could be specific to the software.

To test this, I tried installing python with

conda install -c conda-forge python

I got the same error here

CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to
download and install packages.

Exception: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

It seems to be an issue with the environment, but I have set up other environments on this machine before and never had this issue.

Does anyone know what could be causing this issue?

1

2 Answers 2

6

It seems to be a conda bug. I found this solution in this github issue

copy libcrypto-1_1-x64.* and libssl-1_1-x64.* from anaconda3>library>bin to ananconda3>dlls

All credit to mdbabumiamssm

1
  • This fixed my issue. No reboot is required
    – uRog
    Commented Nov 12, 2023 at 4:17
2

I have now resolved this!

If anyone else has the same issue, going back into the base environment and then using "conda install -n name_of_environment python" worked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.