简体   繁体   English

opencv-python与pyinstaller的兼容性

[英]opencv-python compatibility with pyinstaller

My system has these packages (reported with pip list ): 我的系统具有以下软件包(随pip list一起报告):

C:\WINDOWS\system32>pip list

numpy (1.13.1+mkl)
opencv-python (3.3.0)
pip (9.0.1)
setuptools (28.8.0)*

Then, when I try to install Pyinstaller, I get this error: 然后,当我尝试安装Pyinstaller时,出现此错误:

C:\WINDOWS\system32>pip install --index-url=http://pypi.python.org/simple/ --trusted-host pypi.python.org pyinstaller

Collecting pyinstaller
Could not find a version that satisfies the requirement pyinstaller (from versions: )
No matching distribution found for pyinstaller*

Is there not a Pyinstaller version compatible with my installations of Opencv-python (ie 3.3.0)? 是否没有与我的Opencv-python安装(即3.3.0)兼容的Pyinstaller版本?

Yes there is. 就在这里。 Pyinstaller has nothing to do with OpenCV. Pyinstaller与OpenCV无关。 It's the Python installation specifications you need to worry about. 这是您需要担心的Python安装规范。 That error means that pip could not find the desired package. 该错误意味着pip无法找到所需的软件包。

You can still download it though. 您仍然可以下载它。 For both Python 2.7 and almost all versions of Python-3. 适用于Python 2.7和几乎所有版本的Python-3。 Here's how: 这是如何做:

1) Go to Pyinstaller Download Page 1)转到Pyinstaller下载页面

2) Download 3.3.1 (the latest stable release) You are looking for a tar.gz file 2)下载3.3.1(最新的稳定版本),您正在寻找tar.gz文件

3) Extract the contents. 3)提取内容。

4) Once you have the folders with all the files (you will need to extract them) run python setup.py install . 4)一旦拥有所有文件的文件夹(您需要解压缩它们),请运行python setup.py install

5) Wait while it installs. 5)等待安装。 Your done! 大功告成!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM