Pycharm上的错误:ModuleNotFoundError:没有名为'_curses'的模块

问题描述 投票:-1回答:2

我在pycharm上运行了一个蛇游戏python代码,并在下面获取错误代码。

您可以在此链接中找到代码:https://github.com/engineer-man/youtube/blob/master/015/snake.py

这是我运行时遇到的错误:

C:\Users\mert\Desktop\untitled\venv\Scripts\python.exe C:/Users/mert/Desktop/untitled/asd.py
Traceback (most recent call last):
  File "C:/Users/mert/Desktop/untitled/asd.py", line 2, in <module>
    import curses
  File "C:\Users\mert\AppData\Local\Programs\Python\Python38\lib\curses\__init__.py", line 13, in <module>
    from _curses import *
ModuleNotFoundError: No module named '_curses'

Process finished with exit code 1

我正在运行最新的python版本,并将其安装在21.10.2019。我还用pip install windows-curses

安装了Windows curses

有人知道发生了什么吗?感谢您的帮助。

python pycharm
2个回答
0
投票

好,我解决了这个错误,问题出在解释器的配置上。

[我现在如何得到此错误:

Redirection is not supported.

0
投票

而且我借助以下帮助解决了这个问题:https://blog.csdn.net/qq_38150441/article/details/81607783

我的问题已解决。

© www.soinside.com 2019 - 2024. All rights reserved.