Pin*_*nar 5 python ssl pip python-3.x
这是我的问题。
首先,我只将 Anaconda 安装到我的 Windows 电脑上,我正在使用它,我可以在 Anaconda 等中创建环境。但文件是 *ipynb,我的电脑上没有另一个 Python 版本,只有 Anaconda 和 Python 3.9.12
今天我想开发 Python BOT,它有 *py 文件,所以为此我想在 Anaconda 之外创建环境!
我在桌面上创建了一个 bot 文件夹我打开了 CMD
python -m venv C:\Users\Messi\Desktop\Bot
Run Code Online (Sandbox Code Playgroud)
我从 Visual Code 打开了这个文件。在Therminal上,虚拟代码激活了我的环境
PS C:\Users\Messi\Desktop\Bot> & c:/Users/Messi/Desktop/Bot/Scripts/Activate.ps1
Run Code Online (Sandbox Code Playgroud)
(机器人)PS C:\Users\Messi\Desktop\Bot>
在 Bot 文件中,我创建了另一个文件并将其命名为 IG-Bot-main,在 Virsual Code 中,我曾经cd .\IG-Bot-main将其放在文件夹内。
最后我使用了pip install -r requirements.txt这个命令,但有以下错误
(Bot) PS C:\Users\Messi\Desktop\Bot> cd .\IG-Bot-main
(Bot) PS C:\Users\Messi\Desktop\Bot\IG-Bot-main> pip install -r requirements.txt
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/selenium/
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/selenium/
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/selenium/
WARNING: Retrying (Retry(total=1, 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/selenium/
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/selenium/
Could not fetch URL https://pypi.org/simple/selenium/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/selenium/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement selenium (from versions: none)
ERROR: No matching distribution found for selenium
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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
(Bot) PS C:\Users\Messi\Desktop\Bot\IG-Bot-main>
Run Code Online (Sandbox Code Playgroud)
我不想从https://www.python.org/downloads/安装另一个 python 我应该安装下载 Python 3.10.6 吗?我该如何解决这个问题?为什么会出现这个问题?
非常感谢
| 归档时间: |
|
| 查看次数: |
7642 次 |
| 最近记录: |