我不是专家,而是初级开发人员,我试图为国际象棋制作一个人工智能,为此我去了vscode,在vscode中创建了一个文件夹"pychess
“,在我的桌面上激活了虚拟env,然后运行了pip install python-chess
。
我有一个:
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/ssl/
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/ssl/
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/ssl/
ERROR: Operation cancelled by user
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
我花了一整天的时间来找出,改变路径变量;尝试不同的命令,我甚至不记得,我只是不知道问题是什么,当我做“导入国际象棋”时,即使我设法从windows提示符下载它(可能我添加了3倍的anaconda路径使它工作),即使那时,它说“好像包国际象棋安装在”C....blabla“上,但导入象棋仍然不起作用。因此,我删除了从windows提示符下载的象棋框架,希望这一次它能在我的终端上使用vscode和de环境,但我又错了。
拜托,有什么建议吗?
发布于 2022-09-13 15:13:09
我建议安装openssl 这里。
然后,您应该确保python已经安装并运行。
./configure --with-openssl=/home/username/openssl
最后运行这个程序,如果没有输出,那么应该是好的。
python3 -m ssl
https://stackoverflow.com/questions/73705191
复制相似问题