I need to install a package, Selenium, for python, but when I run ’pip install selenium’ in my command prompt, it says that ’ pip is not recognized as an internal or external command,
operable program or batch file’. I have added my pip path to PATH variables, and I have made sure that pip is installed properly. I have reinstalled python to make sure that pip is installed, and repaired python in case there were missing components or something. I have tried running ’py -m pip install selenium’, and it says that selenium is already installed, but when I run my code it says that there is no module named selenium. I have two different python programs, this python and Anaconda;Spyder. When I install selenium on Spyder, it works, but when I run the code it doesn’t work, not showing any errors. Can you help me
Do you maybe have multiple python versions on your system like for example python2.7 and python3.8?
Maybe you could try using
pip3 install ...
python3 -m install ...
python -m pip install ...
That worked for me. Could you also share your error.
Are you using macOS?
I ran into a similar issue a while back, try:
pip3 install selenium
Related
I am trying to install mmcv python package, but Ubuntu terminal crashes every time during installaction (application simply closes without any errors). I tried to install this package both using standard Linux terminal and via VS Code - the result is always the same. It causes no errors when I install other python packages, but when I try to install mmcv - terminal crushes.
I am using this code for installation:
pip install mmcv-full==1.3.9 -f https://download.openmmlab.com/mmcv/dist/cu117/torch1.13.1/index.html
I tried to install mmcv using this code in Kaggle Kernel (it is Jupyter Notebook-like development environment, which works on Linux too) - and package was installed correctly.
It seems to me that my terminal crashes because mmcv is quite "heavy" python package, but I do not know what to do with it. How can I solve this problem and install mmcv?
It seems like my version of Ubuntu is not compatible with old versions of mmcv.
This code worked for me:
pip install -U openmim
mim install mmcv-full==1.5.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
others have asked this question but the answers are either too hard for me to understand or dont help.
i tried using many variations of python3 and python, pip3 and pip, sudo etc. they all said the package was already present. pip list command shows that numpy v1.23.1 is installed.
I tried uninstalling and reinstalling but that didn't work either.
for context I'm tryna install numpy, python version:3.10.5
It might be that your Python and your pip module do not belong to the same environment/installation.
To make sure you install a module under the Python installation you want to use, run this at a command prompt:
python -m pip install numpy
I am running Python 3.8.3. Previously I had Python 3.6 installed.
When I try to install by pip e.g.
pip install requests
I get the error
Fatal error in launcher: Unable to create process using '"c:\users\myname\appdata\local\programs\python\python36\python.exe" "C:\Users\MyName\AppData\Local\Programs\Python\Python36\Scripts\pip.exe" install requests'
Uninstalling Python 3.6 did not resolve this. I also tried reinstalling pip from https://pypi.org/project/pip/#files.
How can I get pip working again so I can install packages again?
On a side note, the reason I installed 3.8.3 in the first place instead of continuing with 3.6 was that Windows opened its app store any time the python command was used in PowerShell. I figured I might as well download the new version, since at the time I saw no reason to fight it. Still, it would be nice to know how to stop Windows from commandeering this.
If typing python in your command prompt opens python 3.6 then try py -3 or another possible PATH variable you have set for python 3.8
then to use pip for just that python version do the following command
[PATH VARIABLE] -m pip install [py-package]
e.g.
python -m pip install requests
When you are runing pip install requests, it runs the first pip it finds on th path. You can see from the error message, that it is using c:\users\myname\appdata\local\programs\python\python36\python.exe, so you are not really installing anything for Python 3.8.
If running python on your computer runs Python 3.8, then I suggest using this option to run pip:
python -m pip install requests
And if you have to enter full path to start python3.8, than do that:
/full/path/to/python.exe -m pip install requests
I'm trying to install the IMDbPY module to Python using easy_install. However, I've never used Python before and kept getting stuck on using easy_install or pip install. Since I'm using Windows 7, I tried running the following code in command prompt:
easy_install IMDbPY
A flashing cursor then appears on the next line, but nothing happens after a long wait. I tried installing other packages such as SQLObject using easy install and pip install as well, but the same result occurs. It seems that whenever I try to use easy_install, cmd just freezes and never actually finishes the installation.
Am I using easy_install incorrectly? If so, what should I do?
I was able to bypass using easy_install by changing the directory to each package's installation folder and running "python setup.py install" in command prompt.
I've got a problem while I want to install couple packages for python 3.4.
The problem appears while I want to type pip. Any commands after word pip, easy_install are giving the same error. Installed get-pip.py before but the error still occurs:
C:\Users\Konrad>pip
Fatal error in launche: Job information querying failed
I'm running windows10 x64. The cmd was in admin mode.
Aby suggestions? I typed that error message through google, but there weren't any helpful answers.
Running python just works and launches Python 3.4.3.
That doesn't look like the Python pip command. You have a different pip executable in the way somewhere.
Use python -m pip as a work-around; it'll use Python to find the module and use it as a command-line tool (which is explicitly supported):
python -m pip install <something>