- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我已经开始使用 pyqtdeploy 来使用 pyqt 和制作跨平台应用程序。不幸的是,当我实际尝试启动它时,出现错误:
Fatal error in launcher: Unable to create process using C:\Python34\python.exe C:\Python34\pyqtdeploy
我读了this earlier question ,但是 python3 -m pip install pyqtdeploy --upgrade
也给了我一个类似的错误。
使用十六进制编辑器似乎相当冒险和极端?对此还有其他解释/解决方案吗?我的 python34 路径中没有空格,所以这不是问题所在。会不会是我安装的 Python27?
编辑:
我尝试了 py -m pip install pyqtdeploy --upgrade
(感谢@Saurabh Randhawa),但这没有用。命令失败并显示以下内容:
Downloading/unpacking pyqtdeploy
Running setup.py (path:c:\users\<username>\appdata\local\temp\pip_build_IronManMark20\pyqtdeploy\setup.py) egg_info for package pyqtdeploy
pyqtdeploy requires Python v3.2 or later
Complete output from command python setup.py egg_info:
pyqtdeploy requires Python v3.2 or later
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in c:\users\<username>\appdata\local\temp\pip_build_IronManMark20\pyqtdeploy
Storing debug log for failure in C:\Users\<username>\pip\pip.log
和 pip.log:
------------------------------------------------------------
C:\Python27\lib\site-packages\pip\__main__.py run on 04/26/15 12:28:05
Downloading/unpacking pyqtdeploy
Getting page https://pypi.python.org/simple/pyqtdeploy/
URLs to search for versions for pyqtdeploy:
* https://pypi.python.org/simple/pyqtdeploy/
Analyzing links from page https://pypi.python.org/simple/pyqtdeploy/
Skipping https://pypi.python.org/packages/py3/p/pyqtdeploy/pyqtdeploy-0.10-py3-none-any.whl#md5=43c6bd10b5a839be52b5729aedcc776b (from https://pypi.python.org/simple/pyqtdeploy/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/py3/p/pyqtdeploy/pyqtdeploy-0.9-py3-none-any.whl#md5=7ae0f11468cfba8ad42a600b69016db0 (from https://pypi.python.org/simple/pyqtdeploy/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/py3/p/pyqtdeploy/pyqtdeploy-1.0-py3-none-any.whl#md5=8107db271085ca07000017e46f8c37ac (from https://pypi.python.org/simple/pyqtdeploy/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/py34/p/pyqtdeploy/pyqtdeploy-0.1-py34-none-any.whl#md5=f0a41a4a5fd56e38f8e616af46bf1b68 (from https://pypi.python.org/simple/pyqtdeploy/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/py34/p/pyqtdeploy/pyqtdeploy-0.2-py34-none-any.whl#md5=4d3ff35c86c6f58eb20230fbf0082723 (from https://pypi.python.org/simple/pyqtdeploy/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/py34/p/pyqtdeploy/pyqtdeploy-0.3-py34-none-any.whl#md5=5b0b3954113a91002bcf7067a62d72eb (from https://pypi.python.org/simple/pyqtdeploy/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/py34/p/pyqtdeploy/pyqtdeploy-0.4-py34-none-any.whl#md5=2c8e0a14c914613c7913e90a7b0f9682 (from https://pypi.python.org/simple/pyqtdeploy/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/py34/p/pyqtdeploy/pyqtdeploy-0.5-py34-none-any.whl#md5=58419ff7d8825628f566143c8786121c (from https://pypi.python.org/simple/pyqtdeploy/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/py34/p/pyqtdeploy/pyqtdeploy-0.6-py34-none-any.whl#md5=59cc0a08c1408703a94f2209c43928e9 (from https://pypi.python.org/simple/pyqtdeploy/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/py34/p/pyqtdeploy/pyqtdeploy-0.7-py34-none-any.whl#md5=d4f69bd23c2b4dcf0f29a86bda9c6ed0 (from https://pypi.python.org/simple/pyqtdeploy/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/py34/p/pyqtdeploy/pyqtdeploy-0.8-py34-none-any.whl#md5=b653cdc694173741de350287a232643a (from https://pypi.python.org/simple/pyqtdeploy/) because it is not compatible with this Python
Found link https://pypi.python.org/packages/source/p/pyqtdeploy/pyqtdeploy-0.1.tar.gz#md5=32857d8029c8a5ca2b10024abb980b87 (from https://pypi.python.org/simple/pyqtdeploy/), version: 0.1
Found link https://pypi.python.org/packages/source/p/pyqtdeploy/pyqtdeploy-0.10.tar.gz#md5=a84a90faf2327a6cb54117fec5fa16fc (from https://pypi.python.org/simple/pyqtdeploy/), version: 0.10
Found link https://pypi.python.org/packages/source/p/pyqtdeploy/pyqtdeploy-0.2.tar.gz#md5=2c9bf2fe08ba23c6a1be0838e1ec47aa (from https://pypi.python.org/simple/pyqtdeploy/), version: 0.2
Found link https://pypi.python.org/packages/source/p/pyqtdeploy/pyqtdeploy-0.3.tar.gz#md5=ef26df0bf3cda02de2dafb923bfe6847 (from https://pypi.python.org/simple/pyqtdeploy/), version: 0.3
Found link https://pypi.python.org/packages/source/p/pyqtdeploy/pyqtdeploy-0.4.tar.gz#md5=5b6b989d4b21cd3b05a179006298e755 (from https://pypi.python.org/simple/pyqtdeploy/), version: 0.4
Found link https://pypi.python.org/packages/source/p/pyqtdeploy/pyqtdeploy-0.5.tar.gz#md5=3ac7526e302e77cfdae057018a2af600 (from https://pypi.python.org/simple/pyqtdeploy/), version: 0.5
Found link https://pypi.python.org/packages/source/p/pyqtdeploy/pyqtdeploy-0.6.tar.gz#md5=e4cf32765d9c9aa6e04fcea12fcb4bc0 (from https://pypi.python.org/simple/pyqtdeploy/), version: 0.6
Found link https://pypi.python.org/packages/source/p/pyqtdeploy/pyqtdeploy-0.7.tar.gz#md5=bb3b5c0fa0c3ddfaea287e7438ede58c (from https://pypi.python.org/simple/pyqtdeploy/), version: 0.7
Found link https://pypi.python.org/packages/source/p/pyqtdeploy/pyqtdeploy-0.8.tar.gz#md5=b3d6faf50be4784ec1a1f0709c3acc27 (from https://pypi.python.org/simple/pyqtdeploy/), version: 0.8
Found link https://pypi.python.org/packages/source/p/pyqtdeploy/pyqtdeploy-0.9.tar.gz#md5=da00b401948436c915245084df93222f (from https://pypi.python.org/simple/pyqtdeploy/), version: 0.9
Found link https://pypi.python.org/packages/source/p/pyqtdeploy/pyqtdeploy-1.0.tar.gz#md5=97f852bd368acd739228dad7aae46c44 (from https://pypi.python.org/simple/pyqtdeploy/), version: 1.0
Using version 1.0 (newest of versions: 1.0, 0.10, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1)
Downloading from URL https://pypi.python.org/packages/source/p/pyqtdeploy/pyqtdeploy-1.0.tar.gz#md5=97f852bd368acd739228dad7aae46c44 (from https://pypi.python.org/simple/pyqtdeploy/)
Running setup.py (path:c:\users\<username>\appdata\local\temp\pip_build_IronManMark20\pyqtdeploy\setup.py) egg_info for package pyqtdeploy
pyqtdeploy requires Python v3.2 or later
Complete output from command python setup.py egg_info:
pyqtdeploy requires Python v3.2 or later
----------------------------------------
Cleaning up...
Removing temporary dir c:\users\<username>\appdata\local\temp\pip_build_IronManMark20...
Command python setup.py egg_info failed with error code 1 in c:\users\<username>\appdata\local\temp\pip_build_IronManMark20\pyqtdeploy
Exception information:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip\basecommand.py", line 122, in main
status = self.run(options, args)
File "C:\Python27\lib\site-packages\pip\commands\install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:\Python27\lib\site-packages\pip\req.py", line 1229, in prepare_files
req_to_install.run_egg_info()
File "C:\Python27\lib\site-packages\pip\req.py", line 325, in run_egg_info
command_desc='python setup.py egg_info')
File "C:\Python27\lib\site-packages\pip\util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in c:\users\<username>\appdata\local\temp\pip_build_IronManMark20\pyqtdeploy
我知道我正在运行 Python 3.4.2。是什么原因造成的?它说版本错误,但显然不是。
EDIT2:好吧,这真的很奇怪,我尝试再次运行该命令(没有尝试任何解决方案!),它成功了。工作代码:python3 -m pip install pyqtdeploy --upgrade
。为什么我不做任何更改就会发生这种变化?
当我编辑时,我在 64 位 Windows 上运行 32 位 Python(两个版本)。
最佳答案
日志中的这一行:
C:\Python27\lib\site-packages\pip\__main__.py
证明除了 3.4 版本之外,您还安装了 Python2.7 并且...这就是 pip
使用的版本!
根据 Python 3.4 手册的建议,您可以尝试明确地使用 py -3
:
py -3 -m pip install pyqtdeploy --upgrade # default Python 3
py -3.4 -m pip install pyqtdeploy --upgrade # specifically Python 3.4
py
的神奇之处在于,当您安装了多个 Python 版本时(这似乎是您的情况),它可以找到并启动正确的 Python 版本。
关于错误识别的 Python 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29879504/
我已经使用 vue-cli 两个星期了,直到今天一切正常。我在本地建立这个项目。 https://drive.google.com/open?id=0BwGw1zyyKjW7S3RYWXRaX24tQ
您好,我正在尝试使用 python 库 pytesseract 从图像中提取文本。请找到代码: from PIL import Image from pytesseract import image_
我的错误 /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference
我已经训练了一个模型,我正在尝试使用 predict函数但它返回以下错误。 Error in contrasts<-(*tmp*, value = contr.funs[1 + isOF[nn]])
根据Microsoft DataConnectors的信息我想通过 this ODBC driver 创建一个从 PowerBi 到 PostgreSQL 的连接器使用直接查询。我重用了 Micros
我已经为 SoundManagement 创建了一个包,其中有一个扩展 MediaPlayer 的类。我希望全局控制这个变量。这是我的代码: package soundmanagement; impo
我在Heroku上部署了一个应用程序。我正在使用免费服务。 我经常收到以下错误消息。 PG::Error: ERROR: out of memory 如果刷新浏览器,就可以了。但是随后,它又随机发生
我正在运行 LAMP 服务器,这个 .htaccess 给我一个 500 错误。其作用是过滤关键字并重定向到相应的域名。 Options +FollowSymLinks RewriteEngine
我有两个驱动器 A 和 B。使用 python 脚本,我在“A”驱动器中创建一些文件,并运行 powerscript,该脚本以 1 秒的间隔将驱动器 A 中的所有文件复制到驱动器 B。 我在 powe
下面的函数一直返回这个错误信息。我认为可能是 double_precision 字段类型导致了这种情况,我尝试使用 CAST,但要么不是这样,要么我没有做对...帮助? 这是错误: ERROR: i
这个问题已经有答案了: Syntax error due to using a reserved word as a table or column name in MySQL (1 个回答) 已关闭
我的数据库有这个小问题。 我创建了一个表“articoli”,其中包含商品的品牌、型号和价格。 每篇文章都由一个 id (ID_ARTICOLO)` 定义,它是一个自动递增字段。 好吧,现在当我尝试插
我是新来的。我目前正在 DeVry 在线学习中级 C++ 编程。我们正在使用 C++ Primer Plus 这本书,到目前为止我一直做得很好。我的老师最近向我们扔了一个曲线球。我目前的任务是这样的:
这个问题在这里已经有了答案: What is an undefined reference/unresolved external symbol error and how do I fix it?
我的网站中有一段代码有问题;此错误仅发生在 Internet Explorer 7 中。 我没有在这里发布我所有的 HTML/CSS 标记,而是发布了网站的一个版本 here . 如您所见,我在列中有
如果尝试在 USB 设备上构建 node.js 应用程序时在我的树莓派上使用 npm 时遇到一些问题。 package.json 看起来像这样: { "name" : "node-todo",
在 Python 中,您有 None单例,在某些情况下表现得很奇怪: >>> a = None >>> type(a) >>> isinstance(a,None) Traceback (most
这是我的 build.gradle (Module:app) 文件: apply plugin: 'com.android.application' android { compileSdkV
我是 android 的新手,我的项目刚才编译和运行正常,但在我尝试实现抽屉导航后,它给了我这个错误 FAILURE: Build failed with an exception. What wen
谁能解释一下?我想我正在做一些非常愚蠢的事情,并且急切地等待着启蒙。 我得到这个输出: phpversion() == 7.2.25-1+0~20191128.32+debian8~1.gbp108
我是一名优秀的程序员,十分优秀!