python stock
时间: 2023-08-25 09:16:28 浏览: 113
回答: "Python Stock"是一个项目,它提供了学习Python和进行股票分析的机会。然而,需要注意的是,项目作者明确表示该项目仅用于Python代码学习和股票分析,并不负责投资失败所带来的损失。如果你有兴趣使用该项目,你可以按照以下步骤进行操作:
1. 创建一个目录并设置数据存储路径:
`mkdir -p /root/mydata/mariadb/data`
2. 下载Python Stock和MariaDB的Docker镜像:
`docker pull pythonstock/pythonstock:latest`
`docker pull mariadb:10.6.3` [2]
3. 运行MariaDB容器:
`docker run --name mariadb -v /data/mariadb/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=mariadb -p 3306:3306 -d mariadb:latest`
4. 运行Python Stock容器:
`docker run -itd --link=mariadb --name stock -p 8888:8888 -p 6006:6006 -p 9999:9999 -p 8500:8500 -p 9001:9001 pythonstock/pythonstock:latest` [3]
这样,你就可以在本地运行Python Stock项目了。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [如何用 python 获取实时的股票数据?](https://blog.csdn.net/m0_59162248/article/details/130552884)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* *3* [Python Stock安装与使用](https://blog.csdn.net/qq_40032778/article/details/128878758)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文