python国内pip镜像源

35 2021-11-12 11:40

清华镜像站

 

 

C:\Windows\system32>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip
-U
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pip in c:\users\21\appdata\local\programs\python\
python38\lib\site-packages (21.3.1)

C:\Windows\system32>pip config set global.index-url https://pypi.tuna.tsinghua.e
du.cn/simple
Writing to C:\Users\21\AppData\Roaming\pip\pip.ini

C:\Windows\system32>

 

安装pygame:

python3 -m pip install -U pygame --user  # linux下,windows下用python/py即可

pip install easygui

pip install matplotlib

 

C:\Windows\system32>pip list
Package    Version
---------- -------
easygui    0.98.2
numpy      1.21.4
pip        21.3.1
pygame     2.1.0
setuptools 56.0.0

C:\Windows\system32>

 

安装海龟库

pip install -e E:\Tools\常用工具\pythonSetup\turtle-0.0.2

全部评论

·