简体   繁体   English

安装虚拟环境时出错

[英]error while installing virtual environment

I'm following official django tutorial on their webpage.我在他们的网页上关注官方 django 教程。 When I run command "py -m pip install virtualenvwrapper-win", I get the the following errors.当我运行命令“py -m pip install virtualenvwrapper-win”时,出现以下错误。 Please see the screenshot.请看截图。 I have Anaconda installed.我安装了 Anaconda。 The same error occurs on my other computer where I have only Python installed.同样的错误发生在我只安装了 Python 的另一台计算机上。 What am I missing?我错过了什么?

C:\Users\Alex>py -m pip install virtualenvwrapper-win WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. C:\Users\Alex>py -m pip install virtualenvwrapper-win WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenvwrapper-win/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenvwrapper-win/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenvwrapper-win/ WARNING: Retrying (Retry(total=1, connec WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available. ")': /simple/virtualenvwrapper-win/ 警告:连接被 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenvwrapper-win/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenvwrapper-win/ WARNING: Retrying (Retry(total=1, connec t=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenvwrapper-win/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenvwrapper-win/ t=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenvwrapper-win / WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available .")': /simple/virtualenvwrapper-win/

Could not fetch URL https://pypi.org/simple/virtualenvwrapper-win/ : There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/virtualenvwrapper-win/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping Could not fetch URL https://pypi.org/simple/virtualenvwrapper-win/ : There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: / simple/virtualenvwrapper-win/(由 SSLError 引起(“无法连接到 HTTPS URL,因为 SSL 模块不可用。”)

ERROR: Could not find a version that satisfies the requirement virtualenvwrapper-win (from versions: none) ERROR: No matching distribution found for virtualenvwrapper-win错误:找不到满足 virtualenvwrapper-win 要求的版本(来自版本:无)错误:找不到 virtualenvwrapper-win 的匹配分发

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.警告:pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。 Could not fetch URL https://pypi.org/simple/pip/ : There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping Could not fetch URL https://pypi.org/simple/pip/ : There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/ pip/(由 SSLError 引起(“无法连接到 HTTPS URL,因为 SSL 模块不可用。”) -

Try (for anaconda):尝试(对于蟒蛇):

python -m virtualenv env_name python -m virtualenv env_name

Use the Anaconda prompt terminal.使用 Anaconda 提示终端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM