[英]Why do I keep getting the permission denied error after giving Everyone full access to the file?
Firstly I wanted to edit the pip.ini file because I kept getting the Could not fetch URL https://pypi.org/simple/yfinance/ : There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/yfinance/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)'))) - skipping when using pip install [package name] Firstly I wanted to edit the pip.ini file because I kept getting the Could not fetch URL https://pypi.org/simple/yfinance/ : There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org' , 端口 = 443): url 超过最大重试次数: /simple/yfinance/ (由 SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败: 证书链中的自签名证书 (_ssl.Z4A8A08F09D7B7837F3566)) ))) - 使用 pip 安装时跳过[包名]
Than I found this: pip install fails with "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)" where it suddgested that I open the pip.ini file and add this: Than I found this: pip install fails with "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)" where it suddgested that I open the pip.ini file and add this:
[global]
trusted-host = pypi.python.org
pypi.org
files.pythonhosted.org
And now I am having trouble editing the pip.ini file, after watching many tutorials and video explanation videos on how to solve the problem I keep getting the "YOU DO NOT HAVE THE PERMISSION TO EDIT THIS FILE".现在我在编辑 pip.ini 文件时遇到问题,在观看了许多关于如何解决问题的教程和视频解释视频后,我不断收到“您没有编辑此文件的权限”。 I have changed users permissions under properties->security tab and nothing is helping, I still cannot edit the file我在属性->安全选项卡下更改了用户权限,但没有任何帮助,我仍然无法编辑文件
The error translates to: You do not have the permission to open this file, to open it get the permission from an admin or from the owner.该错误转换为:您没有打开此文件的权限,打开它从管理员或所有者那里获得权限。
So to sum up I am trying to fix the SLLCertVerificationError but I can't fix it because I can't open the pip.ini file.所以总结一下,我正在尝试修复 SLLCertVerificationError 但我无法修复它,因为我无法打开 pip.ini 文件。 Any ideas?有任何想法吗?
Note: My I have downloaded python 3.10 from microsoft store and that is why the file location might be a bit odd.注意:我已经从 microsoft store 下载了 python 3.10,这就是文件位置可能有点奇怪的原因。
SOLVED IT解决了
Firstly run the: pip config -v debug to see if pip.ini file exists.首先运行:pip config -v debug 查看pip.ini文件是否存在。 Than create a pip.ini file in the given directory and add:在给定目录中创建一个 pip.ini 文件并添加:
[global]
trusted-host = pypi.python.org
pypi.org
files.pythonhosted.org
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.