python-3.x - 为什么熊猫 read_csv() 在 jupyter 上返回 SSL: CERTIFICATE_VERIFY_FAILED?
问题描述
根据pandas 文档,我们可以在 pandas 0.25.1 中使用 url 作为函数 read_csv() 的参数
它适用于我的终端,但我不明白为什么 jupyter 上的结果不同
终端它的工作原理:
Python 3.6.8
>>> import pandas as pd
>>> pd.__version__
'0.25.1'
>>> pd.read_csv("https://raw.githubusercontent.com/file.csv")
木星:
In [9]: import pandas as pd
In [11]: pd.__version__
Out[11]: '0.25.1'
In[12]: from platform import python_version
print(python_version())
3.7.3
In [12]: pd.read_csv("https://raw.githubusercontent.com/file.csv")
...
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>
解决方案
推荐阅读
- python-3.x - 如何使用 df.to_csv 为多索引数据框 python3 格式化 csv 文件
- javascript - How to make a progress bar increase in size by increasing the width but without any inline style so it doesn't upset CSP
- c++ - 如何从向量中删除重复项
> - xamarin - Error when changing the style to dark from the system
- lambda - F# 表达式仅在泛型内自动从函数转换?
- python - 如何正确使用 scipy.fft.rfft
- java - Path.toRealPath() 和 Path.toAbsolutePath() 有什么区别?
- c# - Umbraco 9 - 如何使用 Examine 启动和运行
- asp.net-core - 微服务模式中聚合器服务的混淆
- python - 重塑由 skimage.imread 读取的 png 图像返回 ValueError