Modules are not recognized after install - python

I have downloaded selenium module and installed it using python setup.py install. When i open up Pycharm and try to import Selenium it gives me this error:
Traceback (most recent call last):
File "C:/Users/mali03/.PyCharmCE2018.1/config/scratches/exe.py", line 1, in
<module> from selenium import webdriver
ModuleNotFoundError: No module named selenium'
Is it because of the interpreter? Where did python install the module and how do i access it?

It's because of Pycharm doesn't know where to find out selenium, or which python interpreter you are using.
Please select correct Python version.
You can found them in Settings | Project Interpreter > Wheel - More > Show Paths for the selected interpreter"

Related

Keep getting selenium cant be found even though i installed it

Traceback (most recent call last):
File "c:\Users\user\OneDrive\Documents\GitHub\Python\GPUBuyer\Airis Tech Bot.py", line 1, in <module>
from selenium import webdriver as wd
ModuleNotFoundError: No module named 'selenium'
I try to run this script from vs code. i keep getting this error even though i installed selenium in the folder
You can use the command "pip install selenium" to install selenium on the terminal, and then use the command "pip show selenium" to check whether the installation is successful.Executing again should solve the problem.

Python pip Modules not found by Python 3.9 " No module named '...' "

Recently I installed Python 3.9 and I did NOT mark “Add Python 3.9 to PATH” because I was not aware of the effect. Uninstalling & reinstalling with marking the checkbox has no effect.
My problem is Python 3.9 does not find installed pip modules which are located at:
c:\users\USER\virtualenv\scripts
My question is; how could I indicate the new version of Python, where to find installed pip modules?
I also tried to add a new entry to the Environment Variables as described on following tutorial:
https://datatofish.com/add-python-to-windows-path/
In my case I put:
Path
C:\Users\USER\AppData\Local\Programs\Python\Python39; C:\Users\USER\VirtualEnv\Scripts
Python 3.9 still shows:
import openpyxl
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'openpyxl'
import selenium
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'selenium'
I hope I explained well enough and you could help me… Thanks to everybody!

Cannot import zmq in python using pycharm

I am trying to use the zmq Python library but it is not recognized and I have already installed it by using the following command:
pip3 install pyzmq
I am using PyCharm IDE.
The run output gives me this error:
Traceback (most recent call last):
File "C:/Users/Operações/Desktop/Testes/teste.py", line 2, in <module>
import zmq
ModuleNotFoundError: No module named 'zmq'
Does anyone can help me with this?
Instead of using pip, try installing pyzmq from File/Settings in PyCharm.
Open the Settings/Preferences
Navigate to Project: -> Python Interpreter
Klick the + at the bottom of the list
Search for your package of choice and hit Install Package
For more details on installing/uninstalling packages in PyCharm:
https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html

Failing to install Python openpyxl module

I have installed the openpyxl Python module in my machine, or at least I thought I've done that. I entered these commands on the command prompt (on Windows):
C:\Users\gluti>cd C:\Users\gluti\PycharmProjects\Data Structures\venv\Scripts
C:\Users\gluti\PycharmProjects\Data Structures\venv\Scripts>pip install openpyxl==2.1.4
And then, it shows a message, saying that the module openpyxl was successfully installed. However, when I try to import this module on Python IDLE, it shows the following error message:
import openpyxl
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import openpyxl
ModuleNotFoundError: No module named 'openpyxl'
Did I miss something or am I installing the module in the wrong directory?
It is possible you have installed python 2 and python 3 so there are two different versions of pip on your machine.
You need to ensure you are installing openpyxl in the same type of python that you are using to run the script.

no module named pywinauto

when I type the following on python2.5 IDLE (windows vista 32-bit)--
from pywinauto import Application
I get this error message--
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import pywinauto
ImportError: No module named pywinauto
I followed the instructions from this site, and did not get any error message during installation. What did I not get right here?
Thanks!
Do you have multiple versions of Python installed? Maybe the python.exe that was used for python.exe setup.py install is not Python 2.5. To check, open a command prompt and run python.exe -V.
If that is the problem, you need to go to the directory where you extracted the pywinauto zip file, and run C:\python25\python.exe setup.py install

Categories