相关疑难解决方法(0)

如何在windows上安装uwsgi?

我正在尝试在虚拟环境中为 django 项目安装 uwsgi;我使用的是 Windows 10。

我做到了pip install uwsgi并且我得到了Command "python setup.py egg_info"

所以为了解决这个错误,我遵循了这个答案

根据答案,我按照 安装了适用于 Windows 的 cygwin 和 gcc 编译器。

还将os.uname()更改为platform.uname()

现在,当我运行“python setup.py install”时。我收到这个错误

C:\Users\Suhail\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py:275: UserWarning: Unknown distribution option: 'descriptions'
  warnings.warn(msg)
running install
C:\Users\Suhail\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
using profile: buildconf/default.ini
detected include path: ['/usr/include', '/usr/local/include']
Patching "bin_name" to properly install_scripts dir
detected CPU cores: 4
configured CFLAGS: -O2 -I. …
Run Code Online (Sandbox Code Playgroud)

python django gcc uwsgi

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

C中的Windows套接字编程

我正在上一个网络课,教授在课堂上正在读这本书.不用说我不知道​​我在做什么.我们的学期项目是从我们的教科书中复制代码并建立一个客户端 - 服务器网络.从字面上复制代码而不做任何修改.

这本书在代码中有错误(缺少分号,额外的paranthesis),但我设法至少编译代码.但是,我遇到了一堆链接错误.

示例:错误1错误LNK2019:未解析的外部符号impsendto @ 24在函数_main C中引用:\ Users\Documents\Visual Studio 2010\Projects\Client_Server\Client_Server\Client_Server\Server.obj Client_Server

我查找了错误代码,我认为代码正在尝试链接到头文件中不存在的定义.我很难修复LNK错误与语法错误.但就像我说的,我不知道如何解决这个问题.我正在为服务器端发送代码,我在客户端遇到了同样的错误.

include <stdio.h>
include <string.h>
include <WinSock2.h>
include <WinSock.h>
include <stdint.h>
include <time.h>

int main(void) {

int s;      
int len;
char  buffer[256];  
struct sockaddr_in servAddr; 
struct sockaddr_in clntAddr; 

int clntAddrLen; //length of client socket addre

//Build local (server) socket add

memset(&servAddr, 0, sizeof(servAddr));
servAddr.sin_family = AF_INET;
servAddr.sin_port = htons(21);
servAddr.sin_addr.s_addr = htonl(INADDR_ANY);

   //create socket
if((s=socket(PF_INET, SOCK_DGRAM, 0) <0 ))
{
   perror("Error: Socket Failed!");
    exit(1);
}

//bind socket to …
Run Code Online (Sandbox Code Playgroud)

c sockets windows networking tcp

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

标签 统计

c ×1

django ×1

gcc ×1

networking ×1

python ×1

sockets ×1

tcp ×1

uwsgi ×1

windows ×1