Reputation: 9
I'm pretty new to the community, and new to python. I know the basics. But now I'm trying to download third party modules via pip but everything I do regarding pip displays an error. I know that pip comes with python seeing as the pip file is there.
I am running python 3.6 and windows 10. I have downloaded pip off the internet also but when I try to run the program it says already downloaded. The first time I ran it it said that it was downloading and successfully downloaded so I'm kind of lost.
Thanks!
Upvotes: 0
Views: 830
Reputation: 1
You need need to be sure either your powershell is being run as administrator, or by creating a virtual environment.
The Installing Packages docs have a great overview, and instructions. https://packaging.python.org/installing/#use-pip-for-installing
Upvotes: 0
Reputation: 11075
Sounds like it's already properly installed. pip is a program called from a system terminal, not from a Python prompt. Open up a command prompt and type pip -h
see what happens. If this does not print out the help page on how to use pip, and instead you get an error to the effect of:
"pip" is not recognized as an internal or external command, operable program or batch file
You then need to point Windows where to find the program (pip.exe) by adding your Python scripts folder C:\...\Python36-32\Scripts\
to your environment PATH
variable. To do this, open the Start menu and search for "environment variables". Open the dialogue and find one named PATH
(case doesn't matter). If it doesn't exist, create it. Edit the value and add the file path to the scripts folder to the end using ;
as a separator.
As per your comment, if you are getting an access denied windows error this answer from another question may help you.
Upvotes: 1