【发布时间】:2019-03-21 16:39:27
【问题描述】:
我是 Python 和 Django 的新手,我正在尝试为这两者创建一个虚拟环境。我在 Windows 上,当我尝试使用命令创建虚拟环境时
conda create --name myDjangoEnv django
出现此错误:
WARNING: A space was detected in your requested environment path
'C:\Users\Paul Miranda\AppData\Local\conda\conda\envs\myDjangoEnv'
Spaces in paths can sometimes be problematic.
Solving environment: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/pro/noarch/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/noarch/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
我尝试关闭防火墙并在 C:\ProgramData\Anaconda3 路径中创建它,因为用户名中的空格可能存在问题,但两者都不起作用。 我该怎么做才能解决这个问题?
【问题讨论】:
标签: python django anaconda virtualenv conda