pycharm安装pyqt5报错,求大神帮助

helloDasim 2020-11-02 10:04:05
Collecting PyQt5
Downloading PyQt5-5.15.1-5.15.1-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl (59.4 MB)

DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at https://github.com/pypa/pip/issues/8333.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pyqt5/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001F61118C160>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/44/b3/4402c5571e69bcc4e54a6f5948c1d6b7a37718acb414b42f593764ec3918/PyQt5-5.15.1-5.15.1-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001F61118C2E0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/44/b3/4402c5571e69bcc4e54a6f5948c1d6b7a37718acb414b42f593764ec3918/PyQt5-5.15.1-5.15.1-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001F61118C460>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /packages/44/b3/4402c5571e69bcc4e54a6f5948c1d6b7a37718acb414b42f593764ec3918/PyQt5-5.15.1-5.15.1-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl
ERROR: Exception:
Traceback (most recent call last):
File "D:\pycharm\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 437, in _error_catcher
yield
File "D:\pycharm\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 519, in read
data = self._fp.read(amt) if not fp_closed else b""
File "D:\pycharm\venv\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "C:\Program Files\Python38\lib\http\client.py", line 454, in read
n = self.readinto(b)
File "C:\Program Files\Python38\lib\http\client.py", line 498, in readinto
n = self.fp.readinto(b)
File "C:\Program Files\Python38\lib\socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "C:\Program Files\Python38\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "C:\Program Files\Python38\lib\ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\pycharm\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 228, in _main
status = self.run(options, args)
File "D:\pycharm\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 182, in wrapper
return func(self, options, args)
File "D:\pycharm\venv\lib\site-packages\pip\_internal\commands\install.py", line 323, in run
requirement_set = resolver.resolve(
File "D:\pycharm\venv\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 183, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "D:\pycharm\venv\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 388, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "D:\pycharm\venv\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 340, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "D:\pycharm\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 467, in prepare_linked_requirement
local_file = unpack_url(
File "D:\pycharm\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 255, in unpack_url
file = get_http_url(
File "D:\pycharm\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 129, in get_http_url
from_path, content_type = _download_http_url(
File "D:\pycharm\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 282, in _download_http_url
for chunk in download.chunks:
File "D:\pycharm\venv\lib\site-packages\pip\_internal\cli\progress_bars.py", line 168, in iter
for x in it:
File "D:\pycharm\venv\lib\site-packages\pip\_internal\network\utils.py", line 64, in response_chunks
for chunk in response.raw.stream(
File "D:\pycharm\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "D:\pycharm\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 541, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "C:\Program Files\Python38\lib\contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "D:\pycharm\venv\lib\site-packages\pip\_vendor\urllib3\response.py", line 442, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
...全文
1191 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
EVILdanger 2022-04-22
  • 打赏
  • 举报
回复

C:\Users\61433>pip install pyqt5
Collecting pyqt5
Using cached https://files.pythonhosted.org/packages/3b/27/fd81188a35f37be9b3b4c2db1654d9439d1418823916fe702ac3658c9c41/PyQt5-5.15.6.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Complete output from command 'D:\Setup\Anaconda3\python.exe' 'D:\Setup\Anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\61433\AppData\Local\Temp\tmpl41g3jte':
ERROR: Querying qmake about your Qt installation...
D:\Setup\Anaconda3\Library\bin\qmake.exe -query
This is the GPL version of PyQt 5.15.6 (licensed under the GNU General Public License) for Python 3.7.3 on win32.
Found the license file 'pyqt-gpl.sip'.
Checking to see if the QtCore bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtCore.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtCore.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtNetwork bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtNetwork.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtNetwork.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtGui bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtGui.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtGui.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtWidgets bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtWidgets.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtWidgets.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtQml bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtQml.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtQml.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QAxContainer bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QAxContainer.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QAxContainer.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtAndroidExtras bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtAndroidExtras.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtAndroidExtras.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtBluetooth bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtBluetooth.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtBluetooth.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtDBus bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtDBus.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtDBus.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
The QtDesigner bindings are disabled with a static Qt installation...
Checking to see if the Enginio bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe Enginio.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_Enginio.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtHelp bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtHelp.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtHelp.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtMacExtras bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtMacExtras.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtMacExtras.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtMultimedia bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtMultimedia.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtMultimedia.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtMultimediaWidgets bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtMultimediaWidgets.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtMultimediaWidgets.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtNfc bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtNfc.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtNfc.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtOpenGL bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtOpenGL.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtOpenGL.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtPositioning bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtPositioning.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtPositioning.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtLocation bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtLocation.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtLocation.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtPrintSupport bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtPrintSupport.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtPrintSupport.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtQuick bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtQuick.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtQuick.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtQuick3D bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtQuick3D.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtQuick3D.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtQuickWidgets bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtQuickWidgets.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtQuickWidgets.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtRemoteObjects bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtRemoteObjects.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtRemoteObjects.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtSensors bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtSensors.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtSensors.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtSerialPort bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtSerialPort.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtSerialPort.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtSql bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtSql.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtSql.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtSvg bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtSvg.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtSvg.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtTest bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtTest.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtTest.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtTextToSpeech bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtTextToSpeech.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtTextToSpeech.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtWebChannel bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtWebChannel.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtWebChannel.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtWebKit bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtWebKit.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtWebKit.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtWebKitWidgets bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtWebKitWidgets.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtWebKitWidgets.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtWebSockets bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtWebSockets.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtWebSockets.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtWinExtras bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtWinExtras.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtWinExtras.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtX11Extras bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtX11Extras.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtX11Extras.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtXml bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtXml.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtXml.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtXmlPatterns bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtXmlPatterns.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmp7a9blh4q\cfgtest_QtXmlPatterns.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the dbus-python support should be built...
The dbus-python package does not seem to be installed.
These bindings will be built: Qt, pylupdate, pyrcc.
Generating the Qt bindings...
Generating the pylupdate bindings...
_in_process.py: Q_PID is undefined

----------------------------------------

ERROR: Command "'D:\Setup\Anaconda3\python.exe' 'D:\Setup\Anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\61433\AppData\Local\Temp\tmpl41g3jte'" failed with error code 1 in C:\Users\61433\AppData\Local\Temp\pip-install-3y6d956l\pyqt5

C:\Users\61433>pip install PyQt5 -i https://mirrors.aliyun.com/pypi/simple
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting PyQt5
Downloading https://mirrors.aliyun.com/pypi/packages/3b/27/fd81188a35f37be9b3b4c2db1654d9439d1418823916fe702ac3658c9c41/PyQt5-5.15.6.tar.gz (3.2MB)
|████████████████████████████████| 3.2MB 1.1MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Complete output from command 'D:\Setup\Anaconda3\python.exe' 'D:\Setup\Anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\61433\AppData\Local\Temp\tmpvlx9f2sr':
ERROR: Querying qmake about your Qt installation...
D:\Setup\Anaconda3\Library\bin\qmake.exe -query
This is the GPL version of PyQt 5.15.6 (licensed under the GNU General Public License) for Python 3.7.3 on win32.
Found the license file 'pyqt-gpl.sip'.
Checking to see if the QtCore bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtCore.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtCore.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtNetwork bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtNetwork.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtNetwork.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtGui bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtGui.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtGui.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtWidgets bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtWidgets.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtWidgets.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtQml bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtQml.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtQml.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QAxContainer bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QAxContainer.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QAxContainer.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtAndroidExtras bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtAndroidExtras.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtAndroidExtras.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtBluetooth bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtBluetooth.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtBluetooth.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtDBus bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtDBus.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtDBus.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
The QtDesigner bindings are disabled with a static Qt installation...
Checking to see if the Enginio bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe Enginio.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_Enginio.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtHelp bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtHelp.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtHelp.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtMacExtras bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtMacExtras.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtMacExtras.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtMultimedia bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtMultimedia.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtMultimedia.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtMultimediaWidgets bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtMultimediaWidgets.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtMultimediaWidgets.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtNfc bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtNfc.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtNfc.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtOpenGL bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtOpenGL.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtOpenGL.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtPositioning bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtPositioning.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtPositioning.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtLocation bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtLocation.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtLocation.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtPrintSupport bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtPrintSupport.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtPrintSupport.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtQuick bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtQuick.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtQuick.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtQuick3D bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtQuick3D.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtQuick3D.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtQuickWidgets bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtQuickWidgets.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtQuickWidgets.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtRemoteObjects bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtRemoteObjects.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtRemoteObjects.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtSensors bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtSensors.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtSensors.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtSerialPort bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtSerialPort.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtSerialPort.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtSql bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtSql.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtSql.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtSvg bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtSvg.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtSvg.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtTest bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtTest.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtTest.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtTextToSpeech bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtTextToSpeech.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtTextToSpeech.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtWebChannel bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtWebChannel.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtWebChannel.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtWebKit bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtWebKit.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtWebKit.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtWebKitWidgets bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtWebKitWidgets.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtWebKitWidgets.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtWebSockets bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtWebSockets.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtWebSockets.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtWinExtras bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtWinExtras.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtWinExtras.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtX11Extras bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtX11Extras.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtX11Extras.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtXml bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtXml.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtXml.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the QtXmlPatterns bindings can be built...
D:\Setup\Anaconda3\Library\bin\qmake.exe QtXmlPatterns.pro
Info: creating stash file C:\Users\61433\AppData\Local\Temp\tmpf3oji_o9\cfgtest_QtXmlPatterns.qmake.stash
Project ERROR: Cannot run compiler 'cl'. Output:
===================
===================
Maybe you forgot to setup the environment?
Checking to see if the dbus-python support should be built...
The dbus-python package does not seem to be installed.
These bindings will be built: Qt, pylupdate, pyrcc.
Generating the Qt bindings...
Generating the pylupdate bindings...
_in_process.py: Q_PID is undefined

----------------------------------------

ERROR: Command "'D:\Setup\Anaconda3\python.exe' 'D:\Setup\Anaconda3\lib\site-packages\pip_vendor\pep517_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\61433\AppData\Local\Temp\tmpvlx9f2sr'" failed with error code 1 in C:\Users\61433\AppData\Local\Temp\pip-install-1xjn_cyv\PyQt5
我安装PyQt5出现了这个问题,不知道怎么解决,求大神帮助

庸了个白 2020-11-03
  • 打赏
  • 举报
回复
引用 2 楼 weixin_51119842 的回复:
大神,我用cmd,按照第一个方法,又报错了 ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/44/b3/4402c5571e69bcc4e54a6f5948c1d6b7a37718acb414b42f593764ec3918/PyQt5-5.15.1-5.15.1-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000206DC0503A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
1.如果还是一开始可以安装后来报错,直接用方法2,你用国外源下载太满,超时设置成10000都不一定可以解决 2.可能是权限不够(几率很小),如果用方法2不行,尝试 pip install PyQt5 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --user Administrator(你的账户名)
helloDasim 2020-11-03
  • 打赏
  • 举报
回复
大神,我用cmd,按照第一个方法,又报错了 ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/44/b3/4402c5571e69bcc4e54a6f5948c1d6b7a37718acb414b42f593764ec3918/PyQt5-5.15.1-5.15.1-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000206DC0503A0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
helloDasim 2020-11-03
  • 打赏
  • 举报
回复
大神,完事了,可以用了,谢谢大神,pycharm也安装好了
庸了个白 2020-11-02
  • 打赏
  • 举报
回复
对于pip来说,pyqt5是很大的,57M很容易就超时了 解决方案1 设置超时时间: pip install PyQt5 --timeout=1000 解决方案2 pip换国内源(推荐) pip install PyQt5 -i https://pypi.tuna.tsinghua.edu.cn/simple/

37,742

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • WuKongSecurity@BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧