错误提示有:
Preparing wheel metadata … error
ERROR: Command errored out with exit status 1: ‘d:\python\python.exe’ ‘d:\python\lib\site-packages\pip_vendor\pep517_in_process.py’ get_requires_for_build_wheel 'C:\Users\(中文)…
prepare_metadata_for_build_wheel…
Check the log s for full command output.
(unicode error) ‘utf-8’ codec can’t decode byte 0xbe in position 0: invalid start byte (sitecustomize.py, line 21)
解决办法:
先参考这个:
首先在pythonmiglhang中 python -m ensurepip 创建出pip3.exe
在Scripts路径下命令行 pip3 install XXX库
亲测有效 thanks
——点点
再试试用管理员身份运行 cmd。参考的这个:
pip安装提示PermissionError: [WinError 5](错误问题解决)
下面的这个方法我没试:
Answer to "Python: Cannot install python module “pyautogui” "