小编Roy*_*cri的帖子

为什么在 C# 中使用 HttpClient 时收到“响应提前结束”?

我在 .Net Core 中的第一个 HTTP 客户端代码。服务器也在我的电脑上运行,所以我想将其发送到本地主机。

在有人在这里推荐之后,我添加了内部异常的打印,但这不足以让我理解这个问题。

namespace HTTPClient
{
    // The object I want to send
    public class Msg
    {
        public string ID { get; set; }
        public string Data { get; set; }
        public int RSSIR { get; set; }
        public int RSSIT { get; set; }
        public int Slot { get; set; }
    }

    class Program
    {
        static Msg msg = new Msg
        {
            ID = "00CC",
            Data = "9F4CC",
            RSSIR = 123, 
            RSSIT = 321,
            Slot …
Run Code Online (Sandbox Code Playgroud)

c# http httpclient .net-core

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

Python 2.7 到 EXE - 无法安装 pyinstaller

我正在使用 Win10,并且有一些用 Python 2.7 编写的代码(必须是,它不是我的),我想创建一个 EXE 文件。我想安装 pyinstaller 但无法安装。我已经尝试更新 pip 版本 suteuptools,以安装“ez_setup”以从 pyinstaller 网站下载文件,但没有帮助。

以下是我尝试下载的方法:

pip install pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz
easy_install pyinstaller
Run Code Online (Sandbox Code Playgroud)

这些是我收到的错误:

    C:\Users\roy.a\Desktop\work\EMV IL - cryptera\cryptera 
    Python\scripts\Activation python>easy_install pyinstaller
    WARNING: The easy_install command is deprecated and will be removed 
    in a future version.
    Searching for pyinstaller 
    Reading https://pypi.org/simple/pyinstaller/
    Downloading https://files.pythonhosted.org/packages/b6/27/a006fcadba0db30819c968eb8de 
   cb4937cda398ca7a44d8874172cdc228a/pyinstaller-4.3.tar.gz#sha256=5ecf8bbc230d7298a796e52bb745b95eee12878d141f1645612c99246ecd23f2
Best match: pyinstaller 4.3
Processing pyinstaller-4.3.tar.gz
Writing c:\users\roy.a\appdata\local\temp\easy_install-b2hzrm\pyinstaller-4.3\setup.cfg
Running pyinstaller-4.3\setup.py -q bdist_egg --dist-dir c:\users\roy.a\appdata\local\temp\easy_install-b2hzrm\pyinstaller-4.3\egg-dist-tmp-hmqf0j
Traceback (most recent call last):
  File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, …
Run Code Online (Sandbox Code Playgroud)

python pip pyinstaller python-2.7

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

标签 统计

.net-core ×1

c# ×1

http ×1

httpclient ×1

pip ×1

pyinstaller ×1

python ×1

python-2.7 ×1