Python: No Pip after installing latest version - pip

After not being able to use pip getting an "invalid syntax" error when entering "python pip" in the CMD-Line of windows, I downloaded the latest python package from the website and installed it.
But same problem.
Even in the Python folder there is neither a pip.py nor a "get-pip.py". That's pretty weird.
What could be the reason?

Related

No matching distribution found for PySide2

I get this error when trying to install PySide2 from the Mac's Terminal:
ERROR: No matching distribution found for PySide2
I checked to make sure I have only 1 installation of Python on my MacBook. The screen shot shows the commands I used to check where Python is located and the recommended command I've seen online. I also have the latest version of pip and Python installed. I need PySide2 for PySimpleGUIQt. I also tried home brew, but it also couldn't locate PySide2, but found something called PySide#2 which I don't know if that's another name for PySide2.
It's cause you have python newest then pyside2 support. I try to install pyside2 on python 3.10 (3.9 same error) and get this error.
Proof:
But in 3.8 it's worked (but on Pypi https://pypi.org/project/PySide2/ it's must work and on 3.9 and 3.10)

AllenNLP Torch Version Unavailable

I am trying to install allennlp via pip on the latest version of macOS Catalina. The Python version is 3.9.0. The pip version is 20.2.4.
I was just able to install only a couple of weeks ago, but now I receive the following error when I run the command:
pip3 install allennlp allennlp-models
ERROR: No matching distribution found for torch<1.8.0,>=1.6.0 (from allennlp)
This is really bad because a time-sensitive project I am working on right now completely depends on allennlp working. I needed to reinstall due to some git issues, and my virtual env was reset. What can I do to resolve this issue?
Thanks.
EDIT: Somehow I ended up uninstalling 3.9 in homebrew and now I'm stuck at jsonnet. It errors out. I saw some posts about this issue, but none of the recommendations work.
EDIT2: I tried reinstalling brew's python 3.9. jsonnet standalone works again, but then I have the pytorch issue again.
I'm stuck in a loop. Neither the system macOS 3.8 python nor the latest 3.9 home-brew python works. I'd rather get the home-brew python working, but there's no valid version of torch available for that one apparently.
Do NOT accidentally use home-brew to download the latest Python 3.9. That isn't compatible with a lot of the required libraries.
Phew.

Python 3.5.1 pip install 'ImportError'

While using pip install I am getting the following error:
Error while finding spec for 'pip__main__' <: No module named 'urllib.request'; 'urllib' is not a package>; 'pip' is a package and cannot be directly executed
Any advice on this one?
I thought maybe it was related to the requests module itself but I tried to download other modules and had the same problem.
I've just upgraded from Python 3.3 to v3.5.1 on Windows and hit the same error message. I understand it's not the same as your problem.
It seems that the instructions from the docs to use:
python -m pip install SomePackage
are wrong, at least for Windows because I get the error message quoted by the OP.
I forgot to add the Scripts directory to my path, the same as previous releases. When I add it the problem is fixed. My path now has (for a default install of Python 3.5):
PATH=<blah>;%USERPROFILE%\AppData\Local\Programs\Python\Python35;%USERPROFILE%\AppData\Local\Programs\Python\Python35\Scripts
The pip executable is located in Scripts, so pip commands can now be executed directly, the same as always:
pip install urllib

Python 3.5 not letting me pip install certain libraries

So I recently upgraded from python 3.4 to 3.5 on my macbook pro. Now when I try to pip install certain libraries I keep getting this error. I have searched and searched and haven't found a solution. Has anyone else had this issue and solved it???
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/1_/vjkc260x25v12hl0d3nrqqwc0000gn/T

installing python packages via pip issues

all I want is install pandas comfortably the package pandas via pip.
Inside python I get the following error message:
>>> pip install pandas
c:\python34\python.exe: No module named pip.__main__; 'pip' is a package and cannot be directly executed
Allright then I use the windows powershell
PS C:\Windows\system32> C:\Python34\python.exe -m pip install pandas
C:\Python34\python.exe: No module named pip
I had uninstalled and reinstalled python because I used at first the 32-Bit version but wanted 64-Bit, but had some issues so switched back to the 32-Bit version.
Before the reinstallation process I remember, that I could get pip to work but due to proxy issues didn't get very far. I am not a hundred percent positive but I might have gotten around the proxy issue at least.
Don't know what to do. Can somebody help.
thanks
Gerrit

Resources