1. 安装
conda create -n ak_test python=3.8.5
conda activate ak_test
pip install akshare -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com --upgrade
2. jupyter中配置添加conda中的环境
第一个版本,配置稍微复杂点要为每个环境都操作一下:
安装ipykernel
pip install ipykernel
通过ipykernel为jupyter添加指定的环境
conda activate ak_test
python -m ipykernel install --name ak_test
重新打开jupyter notebook,就可以看到刚添加的环境
第二个版本为,某些如conda 4.6.7版本安装nb_conda可能有点问题,不行还是换前面的方法吧,我工作电脑上conda 4.10.3版本可以正常安装,但家里的电脑装conda 4.6.7版本的死活不行:
- base环境下安装nb_conda
conda install nb_conda
- 在环境ak_test中安装 jupyter
conda activate ak_test
pip install jupyter
- 重新安装pywin32模