Giter Club home page Giter Club logo

Comments (14)

 avatar commented on August 27, 2024 1

from awesome-python-cn.

 avatar commented on August 27, 2024

from awesome-python-cn.

albertandking avatar albertandking commented on August 27, 2024

牛,这是纯python么? 发自我的iPhone

在 2019年11月4日,下午9:25,Albert King @.***> 写道:  金融数据-AkShare 基于 Python 的开源金融数据接口, 可以作为 TuShare 的一个补充 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

是的

from awesome-python-cn.

 avatar commented on August 27, 2024

from awesome-python-cn.

albertandking avatar albertandking commented on August 27, 2024

不好意思,只是import akshare就收到错误: # Have to specify base this way to satisfy 2to3 ^ SyntaxError: invalid syntax 发自我的iPhone

在 2019年11月4日,下午9:39,Albert King @.> 写道:  牛,这是纯python么? 发自我的iPhone … 在 2019年11月4日,下午9:25,Albert King @.> 写道:  金融数据-AkShare 基于 Python 的开源金融数据接口, 可以作为 TuShare 的一个补充 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 是的 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

目前是基于 conda 创建python3.7.3虚拟环境后安装,没有出现这个错误提示,能提供下详细的错误提示吗?

from awesome-python-cn.

 avatar commented on August 27, 2024

from awesome-python-cn.

albertandking avatar albertandking commented on August 27, 2024

抱歉,打扰了: Traceback (most recent call last): File "iCloud/Finance/finance.py", line 1, in import akshare as ak File "Documents/modules/akshare/init.py", line 263, in from akshare.stock.hk_stock_sina import (get_hk_stock_hist_data, File "Documents/modules/akshare/stock/hk_stock_sina.py", line 10, in import demjson File "Documents/modules/demjson.py", line 645 class json_int( (1L).class ): # Have to specify base this way to satisfy 2to3 ^ SyntaxError: invalid syntax 发自我的iPhone

在 2019年11月4日,下午11:02,Albert King @.***> 写道:  不好意思,只是import akshare就收到错误: # Have to specify base this way to satisfy 2to3 ^ SyntaxError: invalid syntax 发自我的iPhone … 在 2019年11月4日,下午9:39,Albert King @.> 写道:  牛,这是纯python么? 发自我的iPhone … 在 2019年11月4日,下午9:25,Albert King @.> 写道:  金融数据-AkShare 基于 Python 的开源金融数据接口, 可以作为 TuShare 的一个补充 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 是的 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. 目前是基于 conda 创建python3.7.3虚拟环境后安装,没有出现这个错误提示,能提供下详细的错误提示吗? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

方便再发下调用的函数代码吗?我这边测试了 get_hk_stock_hist_data 接口是没问题的或者使用虚拟环境

from awesome-python-cn.

 avatar commented on August 27, 2024

from awesome-python-cn.

albertandking avatar albertandking commented on August 27, 2024

就写了一行: import akshare as ak current_data_df =ak.get_hk_stock_current() print(current_data_df) 在手机上运行的,python 3.8,好像是demjson卡住了。 发自我的iPhone

在 2019年11月4日,下午11:23,Albert King @.> 写道:  抱歉,打扰了: Traceback (most recent call last): File "iCloud/Finance/finance.py", line 1, in import akshare as ak File "Documents/modules/akshare/init.py", line 263, in from akshare.stock.hk_stock_sina import (get_hk_stock_hist_data, File "Documents/modules/akshare/stock/hk_stock_sina.py", line 10, in import demjson File "Documents/modules/demjson.py", line 645 class json_int( (1L).class ): # Have to specify base this way to satisfy 2to3 ^ SyntaxError: invalid syntax 发自我的iPhone … 在 2019年11月4日,下午11:02,Albert King @.> 写道:  不好意思,只是import akshare就收到错误: # Have to specify base this way to satisfy 2to3 ^ SyntaxError: invalid syntax 发自我的iPhone … 在 2019年11月4日,下午9:39,Albert King @.> 写道:  牛,这是纯python么? 发自我的iPhone … 在 2019年11月4日,下午9:25,Albert King @.> 写道:  金融数据-AkShare 基于 Python 的开源金融数据接口, 可以作为 TuShare 的一个补充 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 是的 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. 目前是基于 conda 创建python3.7.3虚拟环境后安装,没有出现这个错误提示,能提供下详细的错误提示吗? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. 方便再发下调用的函数代码吗?我这边测试了 get_hk_stock_hist_data 接口是没问题的或者使用虚拟环境 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

python3.8 有可能报错,有些package可能还不支持python3.8,demjson 用的比较多,很多是不规则的json数据,暂时还不能移除这个package

from awesome-python-cn.

 avatar commented on August 27, 2024

from awesome-python-cn.

albertandking avatar albertandking commented on August 27, 2024

谢谢,没事,台式机上运行是没问题的。 发自我的iPhone

在 2019年11月4日,下午11:32,Albert King @.***> 写道:  就写了一行: import akshare as ak current_data_df =ak.get_hk_stock_current() print(current_data_df) 在手机上运行的,python 3.8,好像是demjson卡住了。 发自我的iPhone … 在 2019年11月4日,下午11:23,Albert King @.> 写道:  抱歉,打扰了: Traceback (most recent call last): File "iCloud/Finance/finance.py", line 1, in import akshare as ak File "Documents/modules/akshare/init.py", line 263, in from akshare.stock.hk_stock_sina import (get_hk_stock_hist_data, File "Documents/modules/akshare/stock/hk_stock_sina.py", line 10, in import demjson File "Documents/modules/demjson.py", line 645 class json_int( (1L).class ): # Have to specify base this way to satisfy 2to3 ^ SyntaxError: invalid syntax 发自我的iPhone … 在 2019年11月4日,下午11:02,Albert King @.> 写道:  不好意思,只是import akshare就收到错误: # Have to specify base this way to satisfy 2to3 ^ SyntaxError: invalid syntax 发自我的iPhone … 在 2019年11月4日,下午9:39,Albert King @.> 写道:  牛,这是纯python么? 发自我的iPhone … 在 2019年11月4日,下午9:25,Albert King @.> 写道:  金融数据-AkShare 基于 Python 的开源金融数据接口, 可以作为 TuShare 的一个补充 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 是的 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. 目前是基于 conda 创建python3.7.3虚拟环境后安装,没有出现这个错误提示,能提供下详细的错误提示吗? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. 方便再发下调用的函数代码吗?我这边测试了 get_hk_stock_hist_data 接口是没问题的或者使用虚拟环境 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. python3.8 有可能报错,有些package可能还不支持python3.8,demjson 用的比较多,很多是不规则的json数据,暂时还不能移除这个package — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

好的,感谢支持

from awesome-python-cn.

 avatar commented on August 27, 2024

from awesome-python-cn.

 avatar commented on August 27, 2024

from awesome-python-cn.

albertandking avatar albertandking commented on August 27, 2024

这个问题跟之前感觉是一样的,用Python3.7.3 应该没有问题的

from awesome-python-cn.

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.