Python Forum
install pip on windows box / version win 7
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
install pip on windows box / version win 7
#1
'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
Wordpress - super toolkits a. http://wpgear.org/ :: und b. https://github.com/miziomon/awesome-wordpress :: Awesome WordPress: A curated list of amazingly awesome WordPress resources and awesome python things https://github.com/vinta/awesome-python
Reply
#2
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.
Reply
#3
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:

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
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#4
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/repositori...Leap_42.3/

Updated python modules are available in [noparse]devel:lang:python:[/noparse]
https://download.opensuse.org/repositori...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:
Wordpress - super toolkits a. http://wpgear.org/ :: und b. https://github.com/miziomon/awesome-wordpress :: Awesome WordPress: A curated list of amazingly awesome WordPress resources and awesome python things https://github.com/vinta/awesome-python
Reply
#5
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!
Wordpress - super toolkits a. http://wpgear.org/ :: und b. https://github.com/miziomon/awesome-wordpress :: Awesome WordPress: A curated list of amazingly awesome WordPress resources and awesome python things https://github.com/vinta/awesome-python
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to find out from outside Python (in Windows) the current version of Python? pstein 4 727 Oct-04-2023, 10:01 AM
Last Post: snippsat
  Windows install does not create .exe, shortcut,etc to open hammer 4 2,008 May-05-2022, 12:33 PM
Last Post: hammer
  Cannot install TensorFlow 2.2 in Windows 10 Led_Zeppelin 1 1,158 Apr-28-2022, 06:35 PM
Last Post: Larz60+
  WinError 2, since fresh new Windows 10 install alok 1 1,642 Jan-06-2022, 11:20 PM
Last Post: lucasbazan
  Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV. Ezzat 2 2,269 Dec-23-2021, 12:34 PM
Last Post: snippsat
  Need to install an old version of matplotlib Pedroski55 3 3,053 Oct-02-2021, 07:36 AM
Last Post: buran
  Last Python (64bit) version for Windows 7? pstein 3 22,012 Nov-15-2020, 02:09 PM
Last Post: jefsummers
  Windows 10 Python Version DevSrc8 6 4,832 Aug-07-2020, 12:36 PM
Last Post: DevSrc8
  Anaconda-install on MX-Linux Version 19.xy - but somehow got stuck apollo 1 2,537 May-04-2020, 11:27 AM
Last Post: snippsat
  pygame install windows 10 s fenny666 4 4,229 Mar-21-2020, 03:55 AM
Last Post: fenny666

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020