python - 绑定端口/接口的问题
问题描述
重新安装用于托管基于 Web 的实验 (psiturk) 并在 python 上运行的包后,我遇到了将端口绑定到接口的问题,导致服务器被阻止。我尝试使用不同的端口,它们都立即被阻止。尝试启动服务器时,它给了我以下警告(没有其他错误消息或服务器日志):
Now serving on http://localhost:22363 /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/os.py:1023: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used return io.open(fd, *args, **kwargs)
这可能与mac安全问题有关吗?还是安装出了问题(我在多个 python 版本中遇到了一些问题)?
更多信息:最近更新为 bigsur,psiturk 在 python 3.8 上运行
解决方案
推荐阅读
- dependencies - 在 RedHat 7.6 依赖项错误中安装 RSVG
- typescript - 如何使用`typeof`获取泛型函数的类型?
- flutter - ReorderableListView - 更改列表中的项目顺序后数据不刷新(我正在使用GetX)
- python - send() 接受 1 到 2 个位置参数,但给出了 3 个 (discord.py)
- postgresql - PostgreSQL:这个查询可以更短吗?
- reactjs - 如何获得泛型函数的返回类型?
- javascript - 从 .csv 文件创建数据库对象的最佳实践
- javascript - 未捕获的错误:无法读取未定义的属性 x
- java - 无法使用 jdbc 和 tomcat 连接到 postgresql。抛出命名异常
- python - 是否可以创建与列表长度一样多的变量?