小编Omr*_*mri的帖子

Python 警告:重试(重试(总计=4,连接=无,读取=无,重定向=无,状态=无))

我正在尝试执行pip install --upgrade pip并不断
收到此错误:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnection
Error('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000026F50B448C8>: Failed to establish a new connection: [WinError 10061] No connection could be made
 because the target machine actively refused it'))': /simple/pytest/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnection
Error('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000026F50B59148>: Failed to establish a new connection: [WinError 10061] No connection could be …
Run Code Online (Sandbox Code Playgroud)

python

11
推荐指数
2
解决办法
9万
查看次数

如何安装win32clipboard

我正在尝试安装,win32clipboard但出于某种原因说:

没有名为 win32clipboard 的模块

pip install win32clipboard 我尝试时,我得到:

找不到满足 win32clipboard 要求的版本(来自版本:)没有找到与 win32clipboard 匹配的发行版

我已经安装了 python 3.7,并通过 pip 安装了 pypiwin32,但仍然无法正常工作。

任何的想法?

python windows python-3.7

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

Windows Defender 从我的 pyinstaller exe 中提醒用户

我使用 pyinstaller 创建 exe 文件并将其发送给一些朋友。它是无害的,但因为它是 --onefile,Windows Defender 会警告它。用户需要允许激活它的权限,并且它可以工作。但不方便。任何解决方案如何确保Windows Defender 从一开始就不会发出警报?

python windows exe pyinstaller

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

用于 Dart 的 Visual Studio Code 快速构造函数不起作用

我在 Visual Studio Code 中创建了这个 Dart 类:

class User {
  String userId;
  String info;
}
Run Code Online (Sandbox Code Playgroud)

Ctrl+.不打开quick fix快速构造函数的菜单。

在此处输入图片说明

关于如何显示所有快速修复选项的任何建议?像这样 -

在此处输入图片说明

dart visual-studio-code

4
推荐指数
3
解决办法
3658
查看次数

如何通过pyinstaller在可执行文件中包含json

尝试specs.spec使用以下内容构建文件,以在可执行文件中包含 JSON 文件。


block_cipher = None

added_files = [
         ( 'configREs.json', '.'),  # Loads the '' file from
                                    # your root folder and outputs it with
                                    # the same name on the same place.
         ]


a = Analysis(['gui.pyw'],
             pathex=['D:\\OneDrive\\Programming\\Python Projects\\Python'],
             binaries=[],
             datas=added_files,
             hiddenimports=[],
             hookspath=[],
             runtime_hooks=[],
             excludes=[],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
             cipher=block_cipher)
exe = EXE(pyz,
          a.scripts,
          exclude_binaries=True,
          name='name here',
          debug=False,
          strip=False,
          upx=True,
          console=False, icon='iconname.ico', version='version.rc' )
coll = COLLECT(exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=False,
               upx=True,
               name='gui')
Run Code Online (Sandbox Code Playgroud)

就像 …

python json specifications pyinstaller

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