问题描述
我开始根据本教程 (https://www.youtube.com/watch?v=QkOKkrKqI-k) 构建一个虚拟环境来部署一个破折号应用程序。但是,我无法安装软件包并且总是遇到相同的错误:
警告:pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。
C:\Path\mkdir "Project 1"
C:\Path\Project 1>py -m venv env
C:\Path\Project 1>.\env\Scripts\activate
(env) C:\Path\Project 1\env\Scripts>pip install numpy
(env) C:\Path\Project 1\env\pip install numpy
我确实阅读了如何设置虚拟环境的指南 (https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/),但它也确实有效。