在所建立的虚拟环境中安装下列基本库:
ipython
numpy
matplotlib
pillow
pandas
scipy
scikit-learn
代码如下:
pip install --user -U ipython numpy matplotlib pillow pandas scipy scikit-learn -i https://pypi.tuna.tsinghua.edu.cn/simple
其中 --user 保证安装权限 , -U 表示升级到最新版本,-i 指定库的安装源,这里用清华的源:
https://pypi.tuna.tsinghua.edu.cn/simple
网友评论