unable to install pip on windows 10 - python

I am a new python user and am trying to install pip by using "python get-pip.py install" in the command prompt but end up with this error message:
"Could not find a version that satisfies the requirement install (from versions:)
No matching distribution found for install"
I have Python 2.7 and Windows 10. Image link below shows error message and web link shows code that I copied into the get-pip.py file. Is there some other install for pip for a different version...?
image of error message
https://bootstrap.pypa.io/get-pip.py

As the other answer notes the issue may be due to your path. However i would reccomend just using chocolatey:
https://chocolatey.org/
This is a package manager that handles a lot of things for you. Once you install chocolatey (very simple installation). You can go ahead and type choco install pip in a command window. This should handle the installation of pip for you. It can also be used for many other things, i.e. anaconda, python itself, and much more.

I think you are facing this problem because you haven't added python to Path Environment Variable.
You do that and things will be smooth.
As far as this problem is concerned
Open command prompt in the folder where you have downloaded 'get-pip.py.' file (shift + right click)
then run 'python get-pip.py'

Related

Why is Python 3.8.2 stored in nonstandard place?

My download install of Python 3.8.2-amd64 is stored in:
C:\Username\AppData\Local\PackageCache\{13ee6ab9-4dca-406c-bc3b-5d86391d39a1}
Why is it stored in PackageCache rather than \Python\Python38?
I can execute py at the command line, but neither pip command nor pip --version are recognized, so I can't install pandas, numpy, etc.
When I try to download get-pip.py I get error message no such site.
It depends if you have customized the installation when you installed Python on your computer. If you do, it will be installed in C:\Program Files but if you don't, it is installed in your Windows profile so you don't need to have administrative rights to install it.
You can find a little bit more on this subject on the Python documentation site

Installing virtualenv in python

I've read every piece of advice on how to install virtualenv. i successfully installed in on my computer with the command:
python -m pip install virtualenv'
As a side note, can someone explain why only this command works, and the popular command in the forum:
pip install virtualenv
returns a command not found error?
When I try to launch the virtualenv I get a command not found error. When I try to install again, I get a Requirement already satisfied proving the module is there. Furthermore, I can see the virtualenv in my python path.
Does anyone know what is happening here?? I can't work with Django until I complete this step.
Operating System: Windows 7

Python 3.5.1 Pygame Installation

I am trying to install Pygame for Python 3.5.1, but it tells me to upgrade to the new version of pip. "You are currently using 7.1.2, use 8.1.2".
Here is a screen shot of it:
The error clearly states Access Denied.
Try to run cmd/powershell as administrator.
The installation error is not because of pip , though you should still upgrade pip
python -m pip install --upgrade pip
Pygame does not have python3.5 support yet. Check the binaries here
Pygame binaries
Try to use Python version 3.4 or 2.7 and then install pygame.
EDIT
You can find unofficial pygame binaries for several Python versions including Python3.5 here.
So if you do not find the official binary, you could try the appropriate file from the above link.
Note: The binaries given there are whl files. So you need to install them using pip.
Example: Assuming you have 32-bit Python installation, run pip install pygame-1.9.2b1-cp35-cp35m-win32.whl
See this answer for more detailed instructions.
Pip seems to be having a permission problem creating this directory: c:\program files (x86)\python35-32\Lib\site-packages\pygame
Here are some things you can try:
Navigate to that directory and see if it already exists. If it does exist, then try deleting it.
Try running pip as an administrator. Right click the command prompt icon and select run as administrator. Your path variables might not be set for the administrator, so you many need to give the full path for pip. In your python folder, it should be in a folder called scripts.
Since you're using Windows, you can also try the binary installers here: http://www.pygame.org/download.shtml
If nothing works you can try installing a different version of Python. I use Python 2.7.8 with pygame.
It was a problem based on the admin command run program and I figures it out.

pycharm interpreter using cygwin version python

I am running django python2.7 using Pycharm in windows.
Now I have some issue with redis queue not working in windows because of this
I am trying to do what this person did here. Use a cygwin version of python as pycharm interpreter.
(not sure if I downloaded all the packages or did correct steps)
I downloaded cygwin and install packages python2.7 + python-setuptools and then try to point my Pycharm interpreter to c:/cygwin/bin/python27.exe
see image
After that it seem ok and ask me to install packing tools pip, I clicked it and it give me this error:
see image
"Cannot start process, the working directory '\cygdrive\c\Users\User1G~1.SIS\AppData\Local\Temp\1\tmpYpudf2pycharm-management\pip-7.1.0' does not exist"
According to the error message it looks like pip can't be found... Are you sure you have installed pip?
Take a look here, how you can install pip: Installing Pip-3.2 on Cygwin
You can open a cygwin command line window and try to manually install the packages you want to.

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.

Categories

Resources