(pyqt5) wsx@wsx-virtual-machine:~/eric6-17.12$ python3 install.py
Checking dependencies
Python Version: 3.7.0
Found PyQt5
Found pyuic5
Found QScintilla2
Found QtGui
Found QtNetwork
Found QtPrintSupport
Found QtSql
Found QtSvg
Found QtWidgets
Found QtWebEngineWidgets
Qt Version: 5.15.2
sip Version: 6.7.10
PyQt Version: 5.15.9
QScintilla Version: 2.14.1
All dependencies ok.
Cleaning up old installation ...
Creating configuration file ...
Compiling user interface files ...
Compiling source files ...
Traceback (most recent call last):
File "/home/wsx/anaconda3/envs/pyqt5/lib/python3.7/py_compile.py", line 136, in compile
_optimize=optimize)
File "<frozen importlib._bootstrap_external>", line 791, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/wsx/anaconda3/envs/pyqt5/lib/python3.7/site-packages/eric6/Editor.py", line 4581
def addCompletionListHook(self, key, func, async=False):
^
SyntaxError: invalid syntax
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/wsx/anaconda3/envs/pyqt5/lib/python3.7/compileall.py", line 155, in compile_file
invalidation_mode=invalidation_mode)
File "/home/wsx/anaconda3/envs/pyqt5/lib/python3.7/py_compile.py", line 140, in compile
raise py_exc
py_compile.PyCompileError: File "/home/wsx/anaconda3/envs/pyqt5/lib/python3.7/site-packages/eric6/Editor.py", line 4581
def addCompletionListHook(self, key, func, async=False):
^
SyntaxError: invalid syntax
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "install.py", line 1616, in <module>
main(sys.argv)
File "install.py", line 1581, in main
quiet=True)
File "/home/wsx/anaconda3/envs/pyqt5/lib/python3.7/compileall.py", line 93, in compile_dir
legacy, optimize, invalidation_mode):
File "/home/wsx/anaconda3/envs/pyqt5/lib/python3.7/compileall.py", line 166, in compile_file
errors='backslashreplace')
TypeError: encode() argument 1 must be str, not None
(pyqt5) wsx@wsx-virtual-machine:~/eric6-17.12$
安装Eric6时报错怎么解决?(ubuntu20.04)
【相关推荐】