Just installed a fresh copy of python 3.4.1 on windows 7. Here says that pip is included by default. but i could not find any pip.exe or some pip commands. Do I need to install it separately or it exists somewhere?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Django __str__ returned non-string (type NoneType)
- Evil ctypes hack in python
"On Windows and Mac OS X, the CPython installers now default to installing pip along with CPython itself (users may opt out of installing it during the installation process). Window users will need to opt in to the automatic PATH modifications to have pip available from the command line by default, otherwise it can still be accessed through the Python launcher for Windows as py -m pip."
Have you tried it?
i have Windows7 Python 3.4.1; following command suggested by Guss worked well
Output
I had the same issue. The problem is that pip install tries to use C:\Users(username)\AppData\Local\Temp to unpack. You have to explicitly set those directories to R/W.I still couldn't do it because it was a work laptop and there were some permissions issues with trying to set these directories to R/W. The alternative is to go to your Env Variables, and set both Tmp and Temp to point to a writeable directory such as C:. The installation went fine. I was able to install pip.
The way I stumbled onto this is by not defaulting pip install in my installation. Even though the pip install was failing, the installer was not giving any errors. Removing pip and then trying to manually add it later is what pointed to what was going on.
Usage of
pip
for installation of packages in Python 3Step 1: Install Python 3. Yes, by default an application file
pip3.exe
is already located there in the path (E.g.
):C:/Users/name/AppData/Local/Programs/Python/Python36-32/Scripts
Step 2: Go to
Step 3: Now, open
cmd
bash/shell by Pressing keyWindows+R
.Step 4: In this same
cmd
As Example just write:
C:/Users/name/AppData/Local/Programs/Python/Python36-32/Scripts/pip install matplotlib
Press
Enter
now. The Packagematplotlib
will start getting downloaded.Further, for upgrading any package
Open
cmd
bash/shell again, thenAs Example just write:
C:/Users/name/AppData/Local/Programs/Python/Python36-32/Scripts/pip install --upgrade matplotlib
Upgrading of the package will start
:)
Assuming you don't have any other Python installations, you should be able to do
python -m pip
after a default installation. Something like the following should be in your system path:C:\Python34\Scripts
This would obviously be different, if you installed Python in a different location.
"py -m pip install requests" works fine with Windows and its up gradation. Just change the path after installing Python 3.4 in the command prompt and type in "py -m pip install requests"command prompt. pip install