溪水叮咚 发表于 2020-3-30 09:10:48

pip pyinstaller报错

本帖最后由 一个账号 于 2020-3-30 09:17 编辑

安装时cmd表现

C:\Users\池林溪>pip install pyinstaller -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/
Collecting pyinstaller
Downloading http://pypi.doubanio.com/packages/3c/c9/c3f9bc64eb11eee6a824686deba6129884c8cbdf70e750661773b9865ee0/PyInstaller-3.6.tar.gz (3.5MB)
   |████████████████████████████████| 3.5MB 819kB/s
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\python38-32\python.exe' 'c:\users\池林溪\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\池林溪\AppData\Local\Temp\tmplsnzsjw4'
         cwd: C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller
    Complete output (36 lines):
    running dist_info
    creating C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info
    writing C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\PKG-INFO
    writing dependency_links to C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\dependency_links.txt
    writing entry points to C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\entry_points.txt
    writing requirements to C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\requires.txt
    writing top-level names to C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\top_level.txt
    writing manifest file 'C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt'
    reading manifest file 'C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    Error in sitecustomize; set PYTHONVERBOSE for traceback:
    SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xb3 in position 0: invalid start byte (sitecustomize.py, line 7)
    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'
    writing manifest file 'C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt'
    creating 'C:\Users\池林溪\AppData\Local\Temp\pip-install-f7dr0o4y\pyinstaller\pip-wheel-metadata\PyInstaller.dist-info'
    error: invalid command 'bdist_wheel'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\池林溪\appdata\local\programs\python\python38-32\python.exe' 'c:\users\池林溪\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\池林溪\AppData\Local\Temp\tmplsnzsjw4' Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

哪位大佬知道怎么做?

一个账号 发表于 2020-3-30 09:17:13

在 cmd 执行以下命令再安装:

python -m pip install --upgrade pip

qiuyouzhi 发表于 2020-3-30 09:18:15

你先用这段命令安装wheel,
然后去https://www.lfd.uci.edu/~gohlke/pythonlibs/
找你想要的模块,然后
pip install whl文件名

溪水叮咚 发表于 2020-3-30 09:32:45

一个账号 发表于 2020-3-30 09:17
在 cmd 执行以下命令再安装:

我试了,还是报错

溪水叮咚 发表于 2020-3-30 09:35:04

qiuyouzhi 发表于 2020-3-30 09:18
你先用这段命令安装wheel,
然后去https://www.lfd.uci.edu/~gohlke/pythonlibs/
找你想要的模块,然后

我没有在网页(https://www.lfd.uci.edu/~gohlke/pythonlibs/)中找到pyinstaller

qiuyouzhi 发表于 2020-3-30 09:42:00

溪水叮咚 发表于 2020-3-30 09:35
我没有在网页(https://www.lfd.uci.edu/~gohlke/pythonlibs/)中找到pyinstaller

那恐怕是你眼睛不好:
https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/PyInstaller-3.6-py2.py3-none-any.whl

溪水叮咚 发表于 2020-3-30 09:44:38

qiuyouzhi 发表于 2020-3-30 09:42
那恐怕是你眼睛不好:
https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/PyInstaller-3.6-py2.py3-non ...

我可能瞎了{:10_266:}

txxcat 发表于 2020-3-30 09:44:58

参考一下这篇帖子:https://blog.csdn.net/crazy_kismet/article/details/103738158

溪水叮咚 发表于 2020-3-30 09:51:56

qiuyouzhi 发表于 2020-3-30 09:42
那恐怕是你眼睛不好:
https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/PyInstaller-3.6-py2.py3-non ...

还是不行

qiuyouzhi 发表于 2020-3-30 09:52:40

溪水叮咚 发表于 2020-3-30 09:51
还是不行

截个图?
https://imgchr.com

溪水叮咚 发表于 2020-3-30 09:57:50

qiuyouzhi 发表于 2020-3-30 09:52
截个图?
https://imgchr.com

谢谢,我搞定了

qiuyouzhi 发表于 2020-3-30 09:58:29

溪水叮咚 发表于 2020-3-30 09:57
谢谢,我搞定了

嗯嗯!
页: [1]
查看完整版本: pip pyinstaller报错