windows终于找到了一条在python3可以安装第三方库的命令
进入python3的安装路径script下:D:\INSTALL\python3-32\Scripts 然后运行cmd,接下去执行以下命令:
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn 库的名称
或下面这个
pip install 库名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
方法二:
将第三方库的压缩文件下载到本地,然后直接安装该压缩包,该方法传说可节省不少时间成本
安装包下载地址:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
下载后
进入python3的安装路径script下:D:\python37\Scripts 然后运行cmd,接下去执行以下命令:
pip3 install D:\abc.whl
--------------------------------------------------------------------------------------------------
2022.8.25学习
清华资源:pypi | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 模块名
执行下面这个可以默认设置之后直接执行:pip install 模块名 就是使用清华的镜像
python -m pip install --upgrade pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple