2

I'm setting up the virtual enviornment of django for the first time. I've downloaded the anaconda library of python in my D drive. So initially I set up the path of python and conda(Scripts) manually in advance system settings. But now when I'm creating the enviornment using command

conda create --name mydjang0 django

the command prompt is showing an error like this-

C:\Users\AABHA GAUTAM> conda create --name mydjang0 django Solving environment: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/pro/win-64/repodata.json.bz2 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.

If your current network has https://www.anaconda.com blocked, please file a support request with your network engineering team.

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/pro/win-64/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))

Prateek Gautam
  • 188
  • 2
  • 3
  • 15

2 Answers2

3

If you already have a .condarc file in your root folder. Then update the file by running this command.

conda config --set ssl_verify false

If you do not have a .condarc file, then create one and then run the above command. I have added both the commands below.

conda config --add channels conda-forge
conda config --set ssl_verify false
Snehal Nair
  • 121
  • 1
  • 6
1

Instead of using command prompt use Anaconda Prompt as administator. run the same command there.

I also faced same issue with command prompt.

Hemant
  • 1,335
  • 2
  • 9
  • 20