Conda创建py3.10环境(股票),并且安装程序包的命令
创建环境:
conda create -n py310 python=3.10
查看环境:
conda env list
激活环境:
conda activate py310
安装程序包:
conda install numpy
conda install pandas
conda install scikit-learn
pip install numpy -i https://mirrors.aliyun.com/pypi/simple/
pip install baostock -i https://mirrors.aliyun.com/pypi/simple/
pip install akshare -i https://mirrors.aliyun.com/pypi/simple/
----------------------------
finance 是一个开源的 Python 金融数据获取库,全称为 Yahoo! Finance API,主要功能是从雅虎财经(Yahoo Finance)平台获取股票、指数、加密货币等金融资产的历史数据、实时行情、财务报表等信息。
conda install -c conda-forge yfinance
去除ST股票,退市股票,上市不满一年的股票
或
tradeStatus为1(只适用于baostock)