Answer the question
In order to leave comments, you need to log in
What to do with the error: "No module named '_ctypes'"?
I have migrated from Python 3.6.6 to 3.7.
I get an error when executing : pipenv lock (environment was previously created successfully) :
LOG:
PS C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python\repos\DjangoPollsNew> pipenv lock
Locking [dev-packages] dependencies.. .Locking
[packages] dependencies...
ser\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\core.py", line 8, in
from .types import convert_type, IntRange, BOOL
File "c:\users\user\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\types.py", line 4, in
from ._compat import open_stream, text_type, filename_to_ui , \
File "c:\users\user\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\_compat.py", line 536, in
from ._winconsole import _get_windows_console_stream
File "c:\ users\user\appdata\local\programs\python\python37\lib\site-packages\pipenv\vendor\click\_winconsole.py", line 16, in
import ctypes
File "C:\Users\User\AppData\Local\ Programs\Python\Python37\Lib\ctypes\__init__.py", line 7, in
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
I can't solve this problem, please help.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question