Cannot easy_install IMDbPY - python

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.

Related

Installing packages in Python 3.8 - pip fatal error, seems to be stuck on 3.6 somehow

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

How do I install selenium without pip?

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

How to install pip in python 3.4 on windows?

I'm really struggling at installing any python modules (e.g six, yahoo_finance) because they require pip to be installed, but I don't know whether I have pip already or how to install it. Once its installed I don't know what command to type in and where to type it in. Can I install these modules any other way without pip?
I am only a beginner, so sorry if this is a bit basic.
Thanks in advance
pip comes already bundled with python 3.4 It will be in your scripts directory C:\Python34\Scripts\
Add it to your Environment variables and you can run it from any directory or else open the directory mentioned above in command prompt and run pip install ... to install whatever you want
First, make sure you have it installed, if not follow the instructions below. Type which pip, and if it doesn't list an URL, it means it's not installed yet.
Go here https://bootstrap.pypa.io/get-pip.py and download the file.
Then open terminal and go to your downloads folder (or wherever you downloaded it to) and type python get-pip.py to execute the script. If you get an error that says OSError: Permission Denied, or something similar, run it with administrator permissions.
If the installation is successful, you should now have pip installed on your computer. Type pip --version to make sure you have it installed.
To install six and yahoo_finance, type:
pip install six
and
pip install yahoo-finance
If something goes wrong update your question.
From Installing Python Modules:
pip is the preferred installer program. Starting with Python 3.4, it is included by default with the Python binary installers.
Emphasis mine
If you already installed it by default you should be able to use it.
Just open the command line and type python -m pip install SomePackage.

Python 3.x - Error while installing packages using pip

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>

How to see the log or results from PIP

Using python PIP (pypi) in Windows 7, how can I keep the pop up window open to see the results of the install (especially if there was an issue)? Or Is there a log that I can review?
Ex:
pip install selenium2Library
I figured an easy work around.. use this:
\Python27\python.exe \Python27\Scripts\pip-2.7-script.py install eyed3
This runs in the current cmd window, instead of a new one that auto closes when done.
This isn't the best solution, because I'm still looking for a proper answer, but what is currently working for me is instead of running pip from the command prompt I'm using cygwin instead. Exactly the same commands to use it: pip install module except that cygwin seems to catch the output of the program.
Find cygwin here: http://cygwin.com/install.html
This is happening for some of my coworkers, but not me.
We had downloaded a pip binary. We fixed it by uninstalling pip, running ez_setup, then running easy_install pip.

Categories

Resources