pip install -i https://pypi.tuna.tsinghua.edu.cn/simple threading tkinter
时间: 2023-03-08 17:08:25 浏览: 625
你可以尝试在命令提示符中输入:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple threading tkinter,以安装threading tkinter库。
相关问题
3. 为 python 安装 pandas 库,且采用镜像网站:https://pypi.tuna.tsinghua.edu.cn/simple,则在 cmd 窗口输入( )。 (A)pip install pandas https://pypi.tuna.tsinghua.edu.cn/simple (B)pip install pandas -h https://pypi.tuna.tsinghua.edu.cn/simple (C)pip install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple (D)pip install pandas -k https://pypi.tuna.tsinghua.edu.cn/simple答案是什么为什么
答案是:(C)pip install pandas -i https://pypi.tuna.tsinghua.edu.cn/simple。
这是因为选项(C)中的 `-i` 参数可以指定库的安装源为指定的镜像网站。在这个情况下,`https://pypi.tuna.tsinghua.edu.cn/simple` 是指定的镜像网站,通过使用 `-i` 参数,可以将安装源设置为该镜像网站。
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn numpy
As an AI language model, I do not have the capability to install packages or execute commands on a local machine. However, the following command will install numpy using pip with Tsinghua University mirror:
```
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn numpy
```
This command will use the Tsinghua University mirror as the source for the package and the `--trusted-host` option is used to avoid SSL warnings.
阅读全文