I am using windows and would like to use the curses package,I installed it with the command:
pip install windows-curses
but when I try to import curses
it gives an eror from the python source file
__init__.py
here's the eror:
C:\Users\user\PycharmProjects\snake\venv\Scripts\python.exe C:/Users/user/AppData/Local/Programs/Python/Python39/Lib/curses/__init__.py
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\Lib\curses\__init__.py", line 12, in <module>
from _curses import *
ModuleNotFoundError: No module named '_curses'
Can someone please help me fix it?
Related
I installed the pywin32 module in my system. But when I import the "win32com" module getting the error as shown below.
Error:-
Traceback (most recent call last):
File "C:\Users\Lenovo\Desktop\script.py", line 1, in <module>
import win32com.client
ModuleNotFoundError: No module named 'win32com'
any idea on this
Try install: pip install pypiwin32
Traceback (most recent call last):
File "c:\the stuff\DarkOS-main\bootscreen.py", line 21, in <module>
from curses import *
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1008.0_x64__qbz5n2kfra8p0\lib\curses\__init__.py", line
13, in <module>
from _curses import *
ModuleNotFoundError: No module named '_curses'
How do you get '_curses' on windows?
Some code:
from curses import *
It is very simple. You need to install the library by running
pip install windows-curses
You could type the above command in command prompt for Vscode or on the terminal in Pycharm
When I run import tkinter I get this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/tkinter/__init__.py", line 37, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
Ruuning apt-get install python3-tk doesn't sove this issue.
Running Python 3.9 on Debian Experimental
Maybe you can try import tkinter instead of import _tkinter
I'm trying to install SMOP on Anaconda3 (Python 3.5.1), but it fails due to the following error:
[Anaconda3] C:\Users\IanHacker\Downloads\smop-0.29>python setup.py install
Traceback (most recent call last):
File "setup.py", line 4, in <module>
from smop.version import __version__
File "C:\Users\IanHacker\Downloads\smop-0.29\smop\__init__.py", line 4, in <module>
import version
ImportError: No module named 'version'
"pip install smop" and "easy_install smop" return the same error.
I referred to ImportError: No module named 'version', so I changed the content of __init__.py:
import version
import parse,resolve,backend,main
from version import __version__
to:
__version__ = '0.29'
import parse,resolve,backend,main
... then, I got:
[Anaconda3] C:\Users\IanHacker\Downloads\smop-0.29>python setup.py install
Traceback (most recent call last):
File "setup.py", line 4, in <module>
from smop.version import __version__
File "C:\Users\IanHacker\Downloads\smop-0.29\smop\__init__.py", line 6, in <module>
import parse,resolve,backend,main
ImportError: No module named 'parse'
I don't even know if the __version__ issue has been solved.
Even if it has been solved, I don't know what to replace "parse" with.
And ... do I have to keep replacing until this works? Is there any better way to solve this?
*For those who installed Anaconda, could you try to run the command and check if the same error happens? Am I the only one who gets this error?
I've gone through the guide yet I still seem to get the following error:
Traceback (most recent call last):
File "C:\Users\KVadher\Desktop\test.py", line 782, in <module>
from alchemyapi import AlchemyAPI
ImportError: No module named alchemyapi
The example works fine, but when I try:
from alchemyapi import AlchemyAPI
I get the above "no module named alchemyapi" error. Is there a pip install I should do in order to install Alchemy properly?
You have to go inside alchemyapi_python's folder to make the import work.