小编A.M*_*any的帖子

PyQt5 安装错误(QtCore Module Error: Unable to create the C++ code)

我正在尝试在我的 PC 上安装 PyQt5 以访问 QtDesigner。

我在安装过程中遇到以下错误:

$ python3 configure.py --qmake=/usr/local/Cellar/qt/5.10.1/bin/qmake --sip=/usr/local/Cellar/sip/4.19.8_2/bin/sip
Querying qmake about your Qt installation...
Determining the details of your Qt installation...
This is the GPL version of PyQt 5.7 (licensed under the GNU General Public License) for Python 3.6.3 on darwin.

......
DBus v1 does not seem to be installed.
Qt v5.10.1 is being used.
The qmake executable is /usr/local/Cellar/qt/5.10.1/bin/qmake.
Qt is built as a shared library.
SIP 4.19.8 is being used.
The sip executable is …
Run Code Online (Sandbox Code Playgroud)

python macos pyqt python-sip pyqt5

4
推荐指数
1
解决办法
3832
查看次数

Python3无法导入argcomplete包

我正在尝试导入“argcomplete”包,但遇到以下错误:

$ python3
Python 3.6.3 (v3.6.3:2c5fed86e0, Oct  3 2017, 00:32:08) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import argcomplete
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'argcomplete'
>>> exit()
Run Code Online (Sandbox Code Playgroud)

我确认 argcomplete 已成功安装:

#pip3 install argcomplete
Collecting argcomplete
Using cached https://files.pythonhosted.org/packages/31/88/ba8d8684a8a27749250c66ff7c2b408fdbc29b50da61200338ff9b2607bf/argcomplete-1.9.4-py2.py3-none-any.whl

Installing collected packages: argcomplete
Successfully installed argcomplete-1.9.4

$ more test_backend.py 
#!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
"""
Run module with test …
Run Code Online (Sandbox Code Playgroud)

python python-3.x

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

python ×2

macos ×1

pyqt ×1

pyqt5 ×1

python-3.x ×1

python-sip ×1