Python Forum
install pip on windows box / version win 7 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: install pip on windows box / version win 7 (/thread-8143.html)



install pip on windows box / version win 7 - apollo - Feb-07-2018

'm having a hard time setting up python packages.



For instance to install pip,


i think i have to do some steps:


So first, i try to installl pip : Then follow these steps to install pip on Windows, it's quite easy.

Install setuptools:
    curl https://bootstrap.pypa.io/ez_setup.py | python
Install pip:
    curl https://bootstrap.pypa.io/get-pip.py | python
Optionally, we add the path to our environment so that we can use pip anywhere. It's somewhere like C:\Python33\Scripts.


well i got back the following line>
the command curl cannot be found in the cmd on my windosws system with 32 bit 
so what


RE: install pip on windows box / version win 7 - stranac - Feb-07-2018

curl is a command that downloads files, you can just download the file manually instead and run it using python.
Btw, if you're using python 3, you most likely already have pip.


RE: install pip on windows box / version win 7 - sparkz_alot - Feb-07-2018

If you installed Python correctly (and hopefully you are using the latest version, 3.6.4) see our installation tutorial: https://python-forum.io/Thread-Basic-Part-1-Python-3-6-and-pip-installation-under-Windows, pip should already be installed. To check, type the following in the command terminal:

C:\>pip -V
pip 9.0.1 from C:\Python36\lib\site-packages (python 3.6)

C:\>
There are a number of ways to install pip, for me the fastest (and no downloads) is at the command terminal type:
python -m ensurepip
if pip is already installed, it will say so, if not it will install the default version, so you will need to upgrade it (again in the command terminal):

pip install --upgrade pip



RE: install pip on windows box / version win 7 - apollo - Feb-10-2018

hello dear stranac and sparkz_alot,

note: to install python on windows is only one step i currently have on my to-do-shedule,

more tasks are the following:

install Python 3.6.4 on a OpenSuse machine; with opensuse 42.3 - see the notes below..+++



again - many thanks for the replies with the tips. i run version 3.6.4 - but i have forgotten to set the environment-paths during the installation on the windows 7 version.

So i guess that this caused the issues i have encountered - in other words.

pip was not " available " and the windows commandline behaved like i mentioned above


sparkz_alot
Quote:If you installed Python correctly (and hopefully you are using the latest version, 3.6.4) see our installation tutorial: https://python-forum.io/Thread-Basic-Par...er-Windows, pip should already be installed. To check, type the following in the command terminal:

i will have a closer look at the installation-tutorial
to fix the above mentioned isseus

I tried to fix this - by entereing the Modify-Modus in the python Installer of python 3.6.4

python 3.6.4

see the advanced options

+associate files with python (requies the py launcher)
+create shortcuts for installed apps 
+add python to environment variables
precompile standard libraries
download debugging sympols 
download debug binaries 
in other words - i have addes this line

+add python to environment variables

note: at the moment i am not in front of the mentioned notebook I will do all the work in the next few days.-Then i will let you know what happened.

meanwhile many many thanks for all your help

greetings, apollo Wink


regarding the installation on opensuse 42.3
- note; this could be written in a extra-thread i will open a new thread in some days:

What's the recommended way to install python 3.6+ on Opensuse Leap?

some friends of me recommend to Upgrade to opensuse Version Leap 15...- the next version of OpenSuse
The latest python is available in the [noparse]devel:lang:python:Factory[/noparse] repo for Leap 42.3 as well though: https://download.opensuse.org/repositories/devel:/languages:/python:/Factory/openSUSE_Leap_42.3/

Updated python modules are available in [noparse]devel:lang:python:[/noparse]
https://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_Leap_42.3/

the question is: whether replacing the system's python3 would be a good idea or might rather cause problems though. Some notes regarding OpenSuse: OpenSuse Leap 15 is the next major version, 15.0 is the successor of Leap 42.3: Well the python version 15 still beta, the release is currently targeted for the beginnig of May. Well - we can make use of the openSUSE repos if we want to upgrade python on our system.

more options: If we instead want or need to install python version side by side, we can do this using virtualenv. Although we can install virtualenv also from the openSUSE repos, it's probably better to use pip to install from the official Python repos.

The virtualenv documentation is located here:https://virtualenv.pypa.io/en/stable/

We can use virtualization, yes we can install or upgrade python in isolated machines, changes and configurations in each machine won't affect what is on our main system or other virtual machines.

what do you suggest?
Again as noted above: this could be written in a extra-thread i will open a new thread in some days:


RE: install pip on windows box / version win 7 - apollo - Feb-12-2018

hello dear all

now i am happy - i was able to check pip

see below:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\Mitarbeiter>c:\
Der Befehl "c:\" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

C:\Users\Mitarbeiter>cd..

C:\Users>cd..

C:\>pip -V
pip 9.0.1 from c:\users\mitarbeiter\appdata\local\programs\python\python36-32\li
b\site-packages (python 3.6)

C:\>
now i can proeed with the next steps.

Many many thanks for all your support and help!