安装Django虚拟环境的问题

问题描述 投票:0回答:1

我是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
1个回答
0
投票

我使用Anaconda Prompt应用程序解决了这个问题。在我的情况下,命令不适用于Windows CMD,但他们在Anaconda Promt中工作。

© www.soinside.com 2019 - 2024. All rights reserved.