0
I have spent hours trying to figure out what I am doing wrong, I will list what I have done below.
- Installed Python, made sure I clicked the check box to add to SHELL
- I checked my to see if python worked in my command line, then checked pip, both work.
- I then installed selenium via pip install selenium.
- I then go to my IDE (ive tried 3-4 different ide's) and type "import selenium"
- I am always getting back a ModuleNotFound error, saying they cannot find selenium.
- I go back to command line to make sure I have it installed and its there, ive uninstalled pip, python, selenium and reinstalled them and even restarted computer multiple times.
- I dont know what to do, please help im going crazy, i should be using all this time to code.
2Are you sure that there is only one version of python installed on your machine ? – CodeIt – 2019-01-06T15:03:00.830
Try installing
selenium
using this commandpython -m pip install selenium
. To check if selenium is installed properly runpython -m pip show selenium
. – CodeIt – 2019-01-06T15:09:53.547When I go to "add or remove programs" and remove python from my machine nothing else shows up. I do have anaconda navigator not sure if that would interrupt any installations. – Mike.Python21 – 2019-01-06T15:11:28.497
I tried python -m pip show selenium and it shows it installed on my system. – Mike.Python21 – 2019-01-06T15:11:46.190
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Mike\AppData\Local\Temp\pip-install-h49fiyro\BeautifulSoup\ I got this as an error when trying to install beautifulsoup – Mike.Python21 – 2019-01-06T15:15:39.913
I seem to be getting the error code 1 every time I try to install other packages with pip install ______ – Mike.Python21 – 2019-01-06T15:19:05.547
ModuleNotFoundError: No module named 'selenium' – Mike.Python21 – 2019-01-06T15:19:31.153
Upgrade pip
python -m pip install --upgrade pip
– CodeIt – 2019-01-06T15:20:19.013Requirement already up-to-date: pip in c:\program files\python37\lib\site-packages (18.1) – Mike.Python21 – 2019-01-06T15:21:04.687
Uninstalling anaconda did not work. – Mike.Python21 – 2019-01-06T15:37:52.520
1SOLUTION: I uninstalled python and anaconda, then i JUST installed anaconda and clicked the checkbox to make anaconda PATH. This allowed me to pip install selenium but not BeautifulSoup (im getting a different error for this and will make another post at a later date). Thank you. – Mike.Python21 – 2019-01-06T15:51:30.107