https://www.python.org/ftp/python/3.7.0/python-3.7.0-amd64.exe
https://download.jetbrains.8686c.com/python/pycharm-professional-2018.1.4.exe
D:\Python\Python37\Scripts\pip3.exe install sip
D:\Python\Python37\Scripts\pip3.exe install PyQt5
D:\Python\Python37\Scripts\pip3.exe install PyQt5-tools
离线
下载并安装python3.7版本:
安装python软件包:
D:\Python\Python37\Scripts\pip3.exe install sip
D:\Python\Python37\Scripts\pip3.exe install PyQt5
D:\Python\Python37\Scripts\pip3.exe install PyQt5-tools
打开 Qt Designer, 随便设计一个窗体:
根据 *.ui 生成 *.py 文件:
D:\Python\Python37\python.exe -m PyQt5.uic.pyuic test.ui -o test2.py
test2.py 最末添加:
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
if __name__ == '__main__':
app = QApplication(sys.argv)
MainWindow = QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
在命令行运行:
D:\Python\Python37\python.exe F:\pywin\test2.py
完美:
源码下载: pywin_src.7z
离线
这个组合需要学习,特别是像我这么懒的人
离线
mark, Python Qt5 学习中 ...
离线
可以可以,最近也在玩这两个的组合
离线
python 好像有个 PySimpleGUI 挺简单好用点
离线
ERROR: Command errored out with exit status 2:
command: 'd:\programs\python\python39-32\python.exe' 'd:\programs\python\python39-32\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\xukaiming\AppData\Local\Temp\pip-build-env-jmcpx2b3\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'sip >=5.3, <7' 'PyQt-builder >=1.1.0, <2'
cwd: None
Complete output (59 lines):
Processing c:\users\xukaiming\appdata\local\pip\cache\wheels\b4\50\c9\930b84257dfd8f8d578b7e6f1325f57ed2457305a48c5c263e\sip-5.3.0-cp39-cp39-win32.whl
Collecting PyQt-builder<2,>=1.1.0
Downloading PyQt_builder-1.4.0-py3-none-any.whl (5.5 MB)
ERROR: Exception:
Traceback (most recent call last):
File "d:\programs\python\python39-32\lib\site-packages\pip\_vendor\urllib3\response.py", line 437, in _error_catcher
yield
File "d:\programs\python\python39-32\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:\programs\python\python39-32\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "d:\programs\python\python39-32\lib\http\client.py", line 458, in read
n = self.readinto(b)
File "d:\programs\python\python39-32\lib\http\client.py", line 502, in readinto
n = self.fp.readinto(b)
File "d:\programs\python\python39-32\lib\socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "d:\programs\python\python39-32\lib\ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "d:\programs\python\python39-32\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:\programs\python\python39-32\lib\site-packages\pip\_internal\cli\base_command.py", line 216, in _main
status = self.run(options, args)
File "d:\programs\python\python39-32\lib\site-packages\pip\_internal\cli\req_command.py", line 182, in wrapper
return func(self, options, args)
File "d:\programs\python\python39-32\lib\site-packages\pip\_internal\commands\install.py", line 324, in run
requirement_set = resolver.resolve(
File "d:\programs\python\python39-32\lib\site-packages\pip\_internal\resolution\legacy\resolver.py", line 183, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "d:\programs\python\python39-32\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:\programs\python\python39-32\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:\programs\python\python39-32\lib\site-packages\pip\_internal\operations\prepare.py", line 467, in prepare_linked_requirement
local_file = unpack_url(
File "d:\programs\python\python39-32\lib\site-packages\pip\_internal\operations\prepare.py", line 255, in unpack_url
file = get_http_url(
File "d:\programs\python\python39-32\lib\site-packages\pip\_internal\operations\prepare.py", line 129, in get_http_url
from_path, content_type = _download_http_url(
File "d:\programs\python\python39-32\lib\site-packages\pip\_internal\operations\prepare.py", line 282, in _download_http_url
for chunk in download.chunks:
File "d:\programs\python\python39-32\lib\site-packages\pip\_internal\cli\progress_bars.py", line 168, in iter
for x in it:
File "d:\programs\python\python39-32\lib\site-packages\pip\_internal\network\utils.py", line 64, in response_chunks
for chunk in response.raw.stream(
File "d:\programs\python\python39-32\lib\site-packages\pip\_vendor\urllib3\response.py", line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "d:\programs\python\python39-32\lib\site-packages\pip\_vendor\urllib3\response.py", line 541, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "d:\programs\python\python39-32\lib\contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "d:\programs\python\python39-32\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.
----------------------------------------
ERROR: Command errored out with exit status 2: 'd:\programs\python\python39-32\python.exe' 'd:\programs\python\python39-32\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\xukaiming\AppData\Local\Temp\pip-build-env-jmcpx2b3\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'sip >=5.3, <7' 'PyQt-builder >=1.1.0, <2' Check the logs for full command output.
离线
麻烦晕哥帮我看看这个怎么弄
离线
麻烦晕哥帮我看看这个怎么弄
socket.timeout: The read operation timed out
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
貌似连不上服务器?
离线