点击击左下角菜单,输入anaconda,选择anaconda power shell
1、查看有什么环境变量
conda env list
结果如图:
2、删除环境变量
conda env remove -n hhh
结果如图:
3、新建一个Anaconda环境:unixtime(要关梯子)
conda create -n unixtime python
结果如图:
选择y
4、激活unixtime环境变量
conda activate unixtime
结果如图 :
5、安装国内镜像源(中科大镜像源Simple Index)
pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
6、 安装pandas库(关闭vpn,会自动预安装numpy)
pip install pandas
7、退出当前环境
conda deactivate
8、在pycharm中使用这个环境