Ⅲ只小猪 发表于 2020-10-31 11:58:20

求助!!!!pip安装模块报错

pip安装模块一直报错,百度了很多方法都不行。
http://tieba.baidu.com/photo/p?kw=python&ie=utf-8&flux=1&tid=7056248186&pic_id=fa2a22a4462309f798d2ff52650e0cf3d6cad695&pn=1&fp=2&see_lz=1

疾风怪盗 发表于 2020-10-31 12:00:22

报错么,报错提示是什么,光说一个报错,谁知道怎么回事呢

Ⅲ只小猪 发表于 2020-10-31 12:00:46

额。。我怎么上传不了图片

Ⅲ只小猪 发表于 2020-10-31 12:05:06

C:\Users\**>pip install pyinstaller
Collecting pyinstaller
Using cached pyinstaller-4.0.tar.gz (3.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
   command: 'c:\users\**\appdata\local\programs\python\python37-32\python.exe' 'c:\users\**\appdata\local\pr
ograms\python\python37-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C
:\Users\**\AppData\Local\Temp\tmp9oxcuiot'
         cwd: C:\Users\**\AppData\Local\Temp\pip-install-dphaugym\pyinstaller
    Complete output (38 lines):
    running dist_info
    creating C:\Users\**\AppData\Local\Temp\pip-modern-metadata-gzgvxpfi\pyinstaller.egg-info
    writing C:\Users\**\AppData\Local\Temp\pip-modern-metadata-gzgvxpfi\pyinstaller.egg-info\PKG-INFO
    writing dependency_links to C:\Users\**\AppData\Local\Temp\pip-modern-metadata-gzgvxpfi\pyinstaller.egg-info
\dependency_links.txt
    writing entry points to C:\Users\**\AppData\Local\Temp\pip-modern-metadata-gzgvxpfi\pyinstaller.egg-info\ent
ry_points.txt
    writing requirements to C:\Users\**\AppData\Local\Temp\pip-modern-metadata-gzgvxpfi\pyinstaller.egg-info\req
uires.txt
    writing top-level names to C:\Users\**\AppData\Local\Temp\pip-modern-metadata-gzgvxpfi\pyinstaller.egg-info\
top_level.txt
    writing manifest file 'C:\Users\**\AppData\Local\Temp\pip-modern-metadata-gzgvxpfi\pyinstaller.egg-info\SOUR
CES.txt'
    reading manifest file 'C:\Users\**\AppData\Local\Temp\pip-modern-metadata-gzgvxpfi\pyinstaller.egg-info\SOUR
CES.txt'
    reading manifest template 'MANIFEST.in'
    Error in sitecustomize; set PYTHONVERBOSE for traceback:
    SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xbe in position 2: invalid start byte (sitecusto
mize.py, line 7)
    warning: no files found matching 'pyinstaller-gui.py'
    no previously-included directories found matching 'bootloader\build'
    no previously-included directories found matching 'bootloader\.waf-*'
    no previously-included directories found matching 'bootloader\.waf3-*'
    no previously-included directories found matching 'bootloader\waf-*'
    no previously-included directories found matching 'bootloader\waf3-*'
    no previously-included directories found matching 'bootloader\_sdks'
    no previously-included directories found matching 'bootloader\.vagrant'
    warning: no previously-included files found matching 'bootloader\.lock-waf*'
    no previously-included directories found matching 'doc\source'
    no previously-included directories found matching 'doc\_build'
    warning: no previously-included files matching '*.tmp' found under directory 'doc'
    warning: no files found matching 'news\_template.rst'
    no previously-included directories found matching 'news'
    no previously-included directories found matching 'old'
    no previously-included directories found matching 'scripts'
    no previously-included directories found matching 'tests\scripts'
    no previously-included directories found matching '.github'
    warning: no previously-included files found matching '.*'
    warning: no previously-included files found matching '*.yml'
    warning: no previously-included files found matching '*~'
    warning: no previously-included files found matching '.directory'
    warning: no previously-included files matching '*.py' found anywhere in distribution
    writing manifest file 'C:\Users\**\AppData\Local\Temp\pip-modern-metadata-gzgvxpfi\pyinstaller.egg-info\SOUR
CES.txt'
    creating 'C:\Users\**\AppData\Local\Temp\pip-modern-metadata-gzgvxpfi\pyinstaller.dist-info'
    error: invalid command 'bdist_wheel'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\**\appdata\local\programs\python\python37-32\python.exe
' 'c:\users\**\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' pr
epare_metadata_for_build_wheel 'C:\Users\**\AppData\Local\Temp\tmp9oxcuiot' Check the logs for full command outp
ut.

Ⅲ只小猪 发表于 2020-10-31 12:07:58

这是怎么回事啊

Ⅲ只小猪 发表于 2020-10-31 12:10:27

疾风怪盗 发表于 2020-10-31 12:00
报错么,报错提示是什么,光说一个报错,谁知道怎么回事呢

没有人吗

疾风怪盗 发表于 2020-10-31 12:24:29

Ⅲ只小猪 发表于 2020-10-31 12:10
没有人吗

看不懂,不知道咋回事,用清华源会出现这样的报错么?要么pip升级下

hrp 发表于 2020-10-31 12:33:31

先尝试pip install wheel再重试你这个

丿丨_丨丿 发表于 2020-10-31 12:41:30

https://www.lfd.uci.edu/~gohlke/pythonlibs/
试试,不用pip

疾风怪盗 发表于 2020-10-31 12:54:45

你这pyinstaller都4.0版本?我用的还是3.6

太阳总会升起 发表于 2020-10-31 15:54:59

试试pip install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple/

Ⅲ只小猪 发表于 2020-10-31 16:11:42

太阳总会升起 发表于 2020-10-31 15:54
试试

pip 版本已经是最新的了,使用清华源也会报错,问题不出在镜像源上面,好像。。。和编码有关系

Ⅲ只小猪 发表于 2020-10-31 16:12:55

算了,都搞不好,我直接升win10就直接好了{:10_266:}

Ⅲ只小猪 发表于 2020-10-31 16:13:26

Ⅲ只小猪 发表于 2020-10-31 16:12
算了,都搞不好,我直接升win10就直接好了

随便弄个最佳答案吧{:10_277:}
页: [1]
查看完整版本: 求助!!!!pip安装模块报错