安装python库的时候老是提示:fatal error in launcher:unable to create process using,script目录也添加到了系统变量path中,就是报错。不直接pip安装了,换了命令:python -m pip install 库名称+下载源,运行成功。遇到同问题的朋友也可以尝试下。
附几个常用的库:
pygame库
命令安装 python -m pip install pygame -i https://pypi.tuna.tsinghua.edu.cn/simple
PIL库(pillow)
命令安装 python -m pip install pillow -i https://pypi.tuna.tsinghua.edu.cn/simple
requests库
命令安装 python -m pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple
baidu-aip库
命令安装 python -m pip install baidu-aip -i https://pypi.tuna.tsinghua.edu.cn/simple
easygui库
命令安装 python -m pip install easygui -i https://pypi.tuna.tsinghua.edu.cn/simple
matplotlib库
命令安装 python -m pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
BeautifulSoup库
命令安装 python -m pip install beautifulsoup4 -i https://pypi.tuna.tsinghua.edu.cn/simple
lxml库
命令安装 python -m pip install lxml -i https://pypi.tuna.tsinghua.edu.cn/simple
P