问题
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."))'))
回答1:
Instead of using command prompt use Anaconda Prompt as administator. run the same command there.
I also faced same issue with command prompt.
来源:https://stackoverflow.com/questions/55677985/condahttperror-http-000-connection-failed-for-url-https-repo-anaconda-com-pk