我是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路径中创建防火墙,因为用户名中的空格可能存在问题,但两者均无效。 我该怎么解决?
答案 0 :(得分:0)
我使用Anaconda Prompt应用程序解决了此问题。就我而言,这些命令不适用于Windows CMD,但它们可用于Anaconda Promt。