1. 不要单独下载Python版本。
2. 下载安装anaconda
anaconda是Python的一个虚拟环境包
包含了python,以及其他常用的数据分析, 以及机器学习的包。
参考链接: https://blog.csdn.net/qq_18424081/article/details/85856713
最好两个都勾选上去。
3. pycharm 选择anaconda作为虚拟环境
4. 配置镜像源:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
5. 直接下载包
pip isntall jieba
下载的包自动集成在anaconda环境中
C:\Users\Administrator>where pip
E:\anaconda3\Scripts\pip.exe
C:\Users\Administrator>where python
E:\anaconda3\python.exe
C:\Users\Administrator>
6..conda的镜像源和pip的镜像源是不一样的。不能用同一个镜像源 conda的镜像地址是带有conda的。