ModuleNotFoundError: No module named 'selenium' when installing via pip3 - python-3.x

I'm using Python 3 on macOS and got the following error message:
ModuleNotFoundError: No module named 'selenium'
I had tried with pip3 install selenium but it didn't work.

Related

No module named 'tweepy'

I'm trying to create a Twitter bot but when I install the tweepy package it gives me the following error:
ModuleNotFoundError: No module named 'tweepy'
I've tried uninstalling and installing tweepy and it still doesn't work. i'm running python 3.9.2
Found a solution: just type pip install tweepy in to the terminal next to the console

Attach psycopg2 to python3.7

My RHEL7 has Python 2.7. I installed python3.7 and also installed psycopg2. The issue is when I run the python3 script where psycopg2 module is used, I am getting error below:
ModuleNotFoundError: No module named 'psycopg2'
I cant figure out how to install/attach psycopg2 for python 3.
I tried reintalling pyscopg2. No luck!

No module named 'Crypto' Error facing on Python 3.7

I am using Windows 10 and Python 3.7 and facing this error from [Crypto.Cipher import AES "ModuleNotFoundError: No module named 'Crypto'"]
Already installed this successfully:
C:\Users\Zeeeshan Abbas>pip install pycryptodomex
Collecting pycryptodomex
Downloading https://files.pythonhosted.org/packages/2d/ec/1cd58f9e16980db055b5ab501e8833456ca0af1e3fef190e73a0c8674cc4/pycryptodomex-3.8.2-cp37-cp37m-win32.whl (10.0MB)
|████████████████████████████████| 10.0MB 384kB/s
Installing collected packages: pycryptodomex
Successfully installed pycryptodomex-3.8.2
But still facing the error:
D:\Coursera\Python\venv\Scripts\python.exe D:/Coursera/Python/ctr.py
Traceback (most recent call last):
File "D:/Coursera/Python/ctr.py", line 11, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'
D:\Coursera\Python\venv\ "venv" stands for virtual environment, so this is where you need to install pycryptodomex . Make sure you activate the virtual environment D:\Coursera\Python\venv\Scripts\activate. Then run the pip install pycryptodomex

ModuleNotFoundError: No module named 'telethon'

I have installed telethon using the following code:
sudo pip3 install telethon
I tried to reinstall it and get the following message:
Requirement already satisfied: pyasn1>=0.1.3 in /usr/local/lib/python3.7/site-packages (from rsa->telethon) (0.4.5)
But when i use it in my code:
from telethon import TelegramClient
It shows the following error:
ModuleNotFoundError: No module named 'telethon'
Where should i look to rectify this error ?
You probably have both Python 2 and Python 3 installed. Just like you do pip3, you should do python3 and not python alone.

No module named pyopendata.io

I just did a pip install of pyopendata using Python 3.5.1 (Anaconda distribution).
The install completed without errors. "import pyopendata" failed:
ImportError: no module named pyopendata.io
I can see the io module in github but it did not download.

Resources