Giter VIP home page Giter VIP logo

Comments (4)

Micro-sheep avatar Micro-sheep commented on August 28, 2024

股票代码

stock_code = '300610'

开始日期

beg = '20210101'

结束日期

end = '20210818'

测试代码

df_history = ef.stock.get_quote_history(stock_code, beg=beg, end=end)

本机调用正常

发布到docker容器后,

访问https请求时,报出SSl认证失败

image

这种情况如何处理呐

尝试安装 python 3.7 版本。如果不行的话,建议在 docker 里面装 miniconda 然后再使用 miniconda 的 python 环境。

from efinance.

Micro-sheep avatar Micro-sheep commented on August 28, 2024

股票代码

stock_code = '300610'

开始日期

beg = '20210101'

结束日期

end = '20210818'

测试代码

df_history = ef.stock.get_quote_history(stock_code, beg=beg, end=end)
本机调用正常

发布到docker容器后,
访问https请求时,报出SSl认证失败
image
这种情况如何处理呐

实测在 docker 里面使用 miniconda 则没有这个问题。安装 miniconda 的方法如下(Linux 系统,,当然你也可以选其他方法)

# 下载
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
# 安装(这里会出现交互选项,全部填默认即可,如果有 yes 就选 yes)
bash Miniconda3-latest-Linux-x86_64.sh
#  更新配置以可以使用 conda、python、pip
source ~/.bashrc

经过以上操作,你将可以在此环境下使用 python 以及 pip

from efinance.

chunhuasun avatar chunhuasun commented on August 28, 2024

好的,感谢感谢,我去试试

from efinance.

Micro-sheep avatar Micro-sheep commented on August 28, 2024

好的,感谢感谢,我去试试

今天刚在 README.md 里面添加使用 docker 安装的教程,参考一下应该可以解决直接使用 python 镜像而出现的SSL Error 的问题。

from efinance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.