I was doing a project in python and saw that import IPy
was not working in 32-bit python IDLE. When I tried to do it in 64-bit python IDLE it worked. I installed IPy using pip install IPy
in cmd. This was my python 32-bit IDLE console input and output:
JavaScript
x
5
1
>>> from IPy import IP
2
Traceback (most recent call last):
3
File "<stdin>", line 1, in <module>
4
ModuleNotFoundError: No module named 'IPy'
5
I am using Windows 7 and Python 3.8 in both 32-bit and 64-bit.
Advertisement
Answer
We must install a new virtual environment. Give huge credits to @Kris.