admin管理员组

文章数量:1542417

离线安装模块

进入网站https://pypi/,搜索所需要的模块.然后选择适合机型的.whl文件进行下载。在命令行通过cd命令,进入.whl所在文件夹。
pip3 install filename.whl

这里我下载的是cp37-win_amd64意味着,python3.7,windows操作系统,64位机
还可以通过gz文件离线安装,先对下载的zip文件进行解压,通过命令提示符进入steup.py所在的文件,然后在命令提示符下输入pip install (文件名).gz

使用国内镜像源

pip时使用清华镜像源

pip install -i https://pypi.tuna.tsinghua.edu/simple pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu/simple

conda时使用清华镜像源

conda config --add channels https://mirrors.tuna.tsinghua.edu/anaconda/pkgs/free/
conda config --set show_channel_urls yes

换回默认源

conda config --

本文标签: AnacondaPython