简体   繁体   English

为什么在授予所有人对文件的完全访问权限后,我不断收到权限被拒绝错误?

[英]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.

相关问题 为什么我在使用 pandas read_gbq 时收到错误“禁止:403 访问被拒绝:BigQuery BigQuery:globbing 文件模式时权限被拒绝” - Why am I getting the error 'Forbidden: 403 Access Denied: BigQuery BigQuery: Permission denied while globbing file pattern' when using pandas read_gbq 每当我尝试访问语音识别程序中的文件时,我总是收到权限拒绝错误 - I keep getting a permission denial error whenever I try to access a file in a speech recognition program 为什么我在 Google Colab 中收到权限被拒绝错误? - Why am I getting permission denied error in Google Colab? 为什么我会遇到pip权限被拒绝的错误? - why do I face permission denied error in pip? 在Jenkins上执行python脚本时,尝试访问串行设备时,为什么会出现“权限被拒绝”错误? - Why do I get a 'permission denied' error when I try to access a serial device when executing python script on Jenkins? 为什么我不断收到此错误消息? - Why do i keep getting this error message? 为什么我不断收到此属性错误? - Why do I keep getting this Attribute Error? 我在哪里输出.csv文件跟踪数据? 我不断收到IOError:[Errno 13]权限被拒绝:无论我尝试将其输出到何处,“ C:\\\\ Python27” - Where do I output .csv file tracking data? I keep getting IOError: [Errno 13] Permission denied: 'C:\\Python27' whereever I try to output it 为什么会出现WindowsError:[错误5]访问被拒绝? - Why am i getting WindowsError: [Error 5] Access is denied? ftp 给出文件“644”并且当我尝试更改它时权限被拒绝 - ftp giving the file “644” and permission denied when I try to change it
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM