anaconda虚拟环境中安装akshare并配置在jupyter中使用配置好的conda虚拟环境 您所在的位置:网站首页 akshare库怎么安装 anaconda虚拟环境中安装akshare并配置在jupyter中使用配置好的conda虚拟环境

anaconda虚拟环境中安装akshare并配置在jupyter中使用配置好的conda虚拟环境

2023-11-04 11:48| 来源: 网络整理| 查看: 265

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模


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有