解决pip install pyinstaller报错

最开始用的是原始默认的地址安装就会报错:

pip install pyinstalller

报错:Could not find a version that satisfies the requirement pyinstalller什么什么的
因为是国外库所以可能因为网络问题安装失败~~你可以的话当我没说~~

最后用国内的镜像地址可以正常安装

pip3 install pyinstaller -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

正常最后输出:Successfully installed altgraph-0.17.4 importlib-metadata-4.8.3
pefile-2023.2.7 pyinstaller-4.10 pyinstaller-hooks-contrib-2022.0
pywin32-ctypes-0.2.2 typing-extensions-4.1.1 zipp-3.6.0 You are using
pip version 9.0.1, however version 23.3 is available. You should
consider upgrading via the ‘python -m pip install --upgrade pip’
command.

你可能感兴趣的:(python,pip,python,开发语言)