【问题标题】:Problems with installation of Django Virtual Enviroment安装 Django 虚拟环境的问题
【发布时间】: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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2019-01-20
      • 1970-01-01
      • 1970-01-01
      • 2019-05-16
      • 1970-01-01
      • 2021-11-29
      • 1970-01-01
      • 2020-10-20
      • 2020-10-07
      相关资源
      最近更新 更多