山西城乡和建设厅网站,网站开发的一般步骤,wordpress获取访问位置,大学生创意产品设计python问题#xff1a;vscode切换环境#xff0c;pip安装库网络错误 vscode切换环境pip安装库网络错误 不使用anaconda安装库 记录一下遇见的python问题。
vscode切换环境
在vscode上面的搜索框输入 select interpreter然后选择需要的环境。
pip安装库网络错误
用… python问题vscode切换环境pip安装库网络错误 vscode切换环境pip安装库网络错误 不使用anaconda安装库 记录一下遇见的python问题。
vscode切换环境
在vscode上面的搜索框输入 select interpreter然后选择需要的环境。
pip安装库网络错误
用requirements.txt来安装需要的依赖包及其版本号
pip install -r requirements.txt出现
WARNING: Retrying (Retry(total4, connectNone, readNone, redirectNone, statusNone)) after connection broken by SSLError(SSLEOFError(8, EOF occurred in violation of protocol (_ssl.c:997))): /simple/gymnasium/
WARNING: Retrying (Retry(total3, connectNone, readNone, redirectNone, statusNone)) after connection broken by SSLError(SSLEOFError(8, EOF occurred in violation of protocol (_ssl.c:997))): /simple/gymnasium/
WARNING: Retrying (Retry(total2, connectNone, readNone, redirectNone, statusNone)) after connection broken by SSLError(SSLEOFError(8, EOF occurred in violation of protocol (_ssl.c:997))): /simple/gymnasium/
WARNING: Retrying (Retry(total1, connectNone, readNone, redirectNone, statusNone)) after connection broken by SSLError(SSLEOFError(8, EOF occurred in violation of protocol (_ssl.c:997))): /simple/gymnasium/
WARNING: Retrying (Retry(total0, connectNone, readNone, redirectNone, statusNone)) after connection broken by SSLError(SSLEOFError(8, EOF occurred in violation of protocol (_ssl.c:997))): /simple/gymnasium/
Could not fetch URL https://pypi.org/simple/gymnasium/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(hostpypi.org, port443): Max retries exceeded with url: /simple/gymnasium/ (Caused by SSLError(SSLEOFError(8, EOF occurred in violation of protocol (_ssl.c:997)))) - skipping
ERROR: Could not find a version that satisfies the requirement gymnasium0.28.1 (from versions: none)
ERROR: No matching distribution found for gymnasium0.28.1
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(hostpypi.org, port443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLEOFError(8, EOF occurred in violation of protocol (_ssl.c:997)))) - skipping解决加镜像源
pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple
/ --trusted-host mirrors.aliyun.com不使用anaconda安装库
进入需要安装的python的Scripts文件夹 在位置框里输入cmd打开命令行。 命令行里输入pip install xxx
pip install cython -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com