问题标签 [python-3.9]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
329 浏览

python - I can not install psycopg2 gives an error what to do

I can not install psycopg2 gives an error what to do I just started to study and already such traps help.

Error:

0 投票
2 回答
2033 浏览

python - 即使 3.9 更新出来了,VS Code Python Interpreter 仍然显示 3.8.6?

看来我仍在使用 Python 3.8.6,即使 Microsoft 商店版本的 python 说 3.9 更新已发布并且我已经安装了它。如何使用 Microsoft Store 中的新版本?我尝试重新安装多次并尝试从 python 网站安装,但我遇到了由于某种原因无法安装库的问题。

没有显示其他解释器选项:

0 投票
1 回答
736 浏览

redis - Python Redis 多处理 - redis.exceptions.ConnectionError -

我编写了一个执行多处理并执行扫描、获取和设置到 Redis 的程序。我们选择 Redis 的原因是为了加快速度。

有没有人有什么建议。我尝试在 get 语句周围放置一个重试循环(对于 set 也可以这样做),但 Scan 语句会更加棘手。是否有一些我扫描更改或增加的参数来避免这种情况?

错误:

我认为错误的第二部分是这样的:等待它再次发生以获得确切的文本:

对于执行 redis-get 的代码,我正在尝试以下操作:

但是我在扫描时也遇到了错误,这看起来更难重试。

0 投票
0 回答
67 浏览

python - ValueError:尝试在非包内包引用中进行相对导入

运行 main.py 时出现“ValueError: Attempted relative import in non-package”错误。下面是我的文件夹结构。请帮助我,我很困惑。另外,尝试了这篇文章https://docs.python.org/3/tutorial/modules.html “6.4.2. Intra-package References”

一个.py

b.py

主文件

错误:

回溯(最近一次调用):文件“main.py”,第 1 行,来自 . import a,b ValueError: Attempted relative import in non-package

0 投票
3 回答
11386 浏览

python - Python 3.9 需要 Microsoft Visual C++ 14.0 或更高版本

所以我最近升级到 Python 3.9 并且在尝试安装一些库时 - 特别是pip install discord- 我遇到了以下错误:

显然我去了链接并下载了构建工具,然后检查了 C++ 部分,但是在重新启动计算机,重新安装 Visual Studio 后,我仍然遇到同样的问题。我想知道安装过程中是否有我遗漏的部分,或者我是否搞砸了。任何帮助表示赞赏。

0 投票
2 回答
1650 浏览

python - 错误:[Errno 13] Permission denied: './configure' when using pip3 install matplotlib on termux

我是新手
,我尝试使用 pip 安装 matplotlib 包,但出现此错误

蟒蛇:3.9.0
点数:20.2.4

有没有办法解决这个问题?我按照
https://wiki.termux.com/wiki/Python https://matplotlib.org/users/installing.html#installing-an-official-release的说明进行操作, 但仍然出现错误

0 投票
1 回答
31 浏览

python - send_Keys 属性错误请回答我的问题

错误:

0 投票
2 回答
5750 浏览

tensorflow - 无法在 python 3.9 上安装 tensorflow

当我尝试在python 3.9上安装tensorflow时,出现以下错误:

3.9没有张量流吗?大家有什么推荐的?我可以在现有版本之外安装其他版本的 python 吗?

0 投票
0 回答
55 浏览

python-c-api - 如何发送命令并获得结果?API Python/C - PyRun_String

我想向解释器发送一个命令并得到这个命令的返回。

我实际上正在使用它,它工作得很好,但是如果我想像我得到的那样初始化一个变量PyRun_String,我必须传入 args 。如果我想发送,我必须输入 args 然后我得到.Py_single_inputa = 10noneaPy_eval_input10

所以我的问题是如何在同一个函数中合并Py_single_inputPy_eval_input使用这两个函数。

或者

除了 之外还有其他功能Pyrun_String吗?

0 投票
1 回答
56 浏览

python - 我发现了这个递归错误。我不知道问题出在哪里

运行以下代码时:

我得到以下无限递归错误: