第一 不能直接使用cmd命令行,得在pycharm的终端venv下使用命令行语句。
第二 去搜索自己想安装的库的清华源
例如:
pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
第三 检查是否安装成功
文件--设置--项目---python解释器,查看是否有你安装的包。
例如:
pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
文件--设置--项目---python解释器,查看是否有你安装的包。