Home > other >  Questions about the installation pyinstaller failure, pursuing big elder brothers to give directions
Questions about the installation pyinstaller failure, pursuing big elder brothers to give directions

Time:11-23

I want to install pyinstaller packaged the script, but always installation is not successful, an error as below, please comment the eldest brother, how to solve this? Baidu did not find relevant, thank you, bother said bai, know! Thank you very much!


C: \ Users \ 72919 & gt; PIP install pyinstaller
DEPRECATION: Python 2.7 will reach the end of its life on January 1 st, 2020. Both Please upgrade your Python as Python 2.7 won 't be maintained after that date. A future version of PIP will drop support for Python 2.7. More details about the Python 2 support in PIP, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting pyinstaller
Using cached https://files.pythonhosted.org/packages/e2/c9/0b44b2ea87ba36395483a672fddd07e6a9cb2b8d3c4a28d7ae76c7e7e1e5/PyInstaller-3.5.tar.gz
Installing the build dependencies... The error
ERROR: the Command errored out with the exit status 1:
Command: 'c: \ python27 \ python exe' 'c: \ python27 \ lib \ site - packages \ PIP' install - ignore - installed - no - user -- prefix 'c: \ users \ \ appdata \ 72919 local \ temp \ PIP - build - env - x8vmbp \ overlay' - no - warn - script - the location - no - binary: none: - only - binary: none: -i https://pypi.org/simple -- 'setuptools> Wheel=40.8.0 '
CWD: None
Complete the output lines (12) :
Traceback (the most recent call last) :
The File "c: \ python27 \ lib \ runpy py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
The File "c: \ python27 \ lib \ runpy py", line 72, in _run_code
The exec code in run_globals
The File "c: \ python27 \ lib \ site - packages \ PIP \ __main__ py", line 16, the in & lt; module>
The from PIP. _internal import main as _main # isort: skip # noqa
The File "c: \ python27 \ lib \ site - packages, PIP, _internal, set py", line 19, in & lt; module>
The from PIP. _vendor. Urllib3. Exceptions import DependencyWarning
File "c: \ python27 \ lib \ site - packages \ PIP \ _vendor \ urllib3 \ set py", line 25, in & lt; module>
The from logging import NullHandler
ImportError: always import a name NullHandler
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
ERROR: the Command errored out with the exit status 1: 'c: \ python27 \ python exe' 'c: \ python27 \ lib \ site - packages \ PIP' install - ignore - installed - no - user -- prefix 'c: \ users \ \ appdata \ 72919 local \ temp \ PIP - build - env - x8vmbp \ overlay' - no - warn - script - the location - no - binary: none: - only - binary: none: -i https://pypi.org/simple -- 'setuptools> Wheel=40.8.0 'Check the logs for full command output.

CodePudding user response:

Python2. 7 is not supported

CodePudding user response:

reference 1/f, kohane _Jun response:
python2. 7 don't support the


Is that so,,,,

CodePudding user response:

Not yes, my colleague that computer can

CodePudding user response:

https://www.lfd.uci.edu/~gohlke/pythonlibs/go there next installation package, try the manual installation

CodePudding user response:

Who is python32?

CodePudding user response:

Packing and suggest you use pyinstaller virtualenv to build a virtual environment, install all minimal dependencies in the virtual environment, and packaging, easy to success

CodePudding user response:

I also met the same problem, the solution is:
PIP install - user pyinstaller, you can have a try! You don't succeed you asked me again

CodePudding user response:

Ha ha ha ha I check my brother and I have been in my error tips are all the same to you wait for me to solve and come back,,,,,,,,,

CodePudding user response:

refer to the eighth floor zengjiisaboy response:
ha ha ha ha I check my brother and I have been in you an error message with me all the same when I solved again,,,,,,,,,

Yes, not solved, I also is such

CodePudding user response:

https://blog.csdn.net/weixin_46847476/article/details/105346569
Advice to look at this article, the problem of you in the second content of this article, the main reason for you I think is the version of setuptools is very low, CMD use instructions:
PIP install, upgrade setuptools
Update good try again after, if you have any questions just to see this article, the article can't solve, please reply me,

CodePudding user response:

在https://packaging.python.org/tutorials/installing-packages/#id7官方网站查看指引,其内提供了一个现成的获取和升级pip setuptools wheel的包,并提供了利用虚拟环境为不同程序配置库的思路,使用此方法后已成功安装了pyinstaller库,且同时安装好了 pywin32-ctypes, future, pefile, altgraph, pyinstaller等,(版本问题大概是最常见的失败原因之一,在这个网站非常详细的说明了如何配置第三方库,并且强调了这一点)打开 https://www.lfd.uci.edu/~gohlke/pythonlibs网站,搜索(CTRL+F)需要安装的库的名称,找到对应自己系统的版本并下载(cp后面的数字是python的版本,如cp36代表python3.6版本,WIN后面的数字32/64表示32或者64位系统)下载后,使用pip install +路径文件名安装(由于部分库的作者未提供已编译的文件,所以一位教授维护了这个站点提供这些编译后的文件使得无编译条件时也可以安装库,感谢他,)在https://github.com/pypa/pip/issues/7498中可以参与反馈,讨论,获取帮助,其中有关于pip的一些日志,对于复杂的无法解决的问题可考虑通过此途径解决,当然这需要适应英文环境,(通常使用pip工具即可解决95%以上的安装问题,因而站内说明并未详细查看,)对于使用python做数据处理者来说,下载anaconda是一个极好的无需自己在配置库的方法,它提供了比idle更多的编程帮助,并支持大约800个库,可以一劳永逸,https://www.anaconda.com/(即集成安装)一些博客中提出了用管理员方法运行cmd并安装,未知其原理,暂不考虑并留待学习,此外,网络原因也是install失败的原因之一,可考虑换个网络环境或择时再试,

CodePudding user response:

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related