Re: [Tutor] Fwd: Newbie trying to get pip run on windows 7

2016-04-20 Thread eryk sun
On Tue, Apr 19, 2016 at 11:26 PM, Gustavo Davis via Tutor
 wrote:
>  But for some reason after I made the changes and saved them they wont
>  run. I mean once I go to the file and right click on them and click run
>  the cmd prompt pops up for a moment and then it just closes down and the
>  pip module never runs in python.

When you run a .py script from Explorer, Windows creates a new console
for the script's standard input and output, but this console closes as
soon as the script exits (i.e. when the python.exe process exits).
Instead you can run the script from an existing cmd shell to inherit
the shell's console.

> ;C:\Python34\Scripts\pip

There's no "Scripts\pip" directory.

Only add fully qualified directories to PATH, separated by a
semicolon, without quotes, and with no spaces between entries. You can
reference another environment variable in PATH, but only if the
variable doesn't reference other environment variables.

Add ;.PY to PATHEXT to allow running "command" instead of "command.py".

> >>> import pyperclip
> Traceback (most recent call last):
>   File "", line 1, in 
> import pyperclip
> ImportError: No module named 'pyperclip'

With PATH set up correctly, you can install this module from a cmd
shell using "pip install pyperclip".

pip searches for packages on pypi.python.org. This should work fine
for pure-Python packages and those with a WHL or EGG that's built for
your version of Python. Some source-only packages require building
extension modules. If your system isn't configured to build
extensions, look for an unofficial WHL on Christoph Gohlke's site:

http://www.lfd.uci.edu/~gohlke/pythonlibs
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Fwd: Newbie trying to get pip run on windows 7

2016-04-20 Thread Gustavo Davis via Tutor
   -- Forwarded message --
   From: Gus Davis 
   Date: Apr 19, 2016 9:53 PM
   Subject: Newbie trying to get pip run on windows 7
   To: webmas...@python.org
   Cc:

 From: Gustavo Davis
 Sent: Tuesday April 19th, 2016
 To: Python Org
 Subject: Python Module issues (specifically pip)
 Greetings!
 My name is Gustavo Davis.  I am enjoying immensely what I'm learning
 about Python and all that it has to offer. Keep up the good work with
 Python and please continue making it one of the most popular and open
 source programming languages. 
 For right now the only thing that is causing me issues is with getting
 Pip to run on my PC. I've downloaded the files to my desktop folder and
 Ive even tried to look up the answers on youtube and other places. Some
 of the answers I understand about going to
 
start>computer>properties>advancesystemsetttings>environmentvariables>path>edit
 and then add something like this:
 ;C:\Python34\Scripts\pip
 C:\Users\Owner\Desktop\Python Folder\Scripts
 But for some reason after I made the changes and saved them they wont
 run. I mean once I go to the file and right click on them and click run
 the cmd prompt pops up for a moment and then it just closes down and the
 pip module never runs in python. I have version 3.4.4. and 3.5.1. I'm
 very new to Python and I have to admit I'm not used to using the cmd
 prompt to install modules and I'm not sure that I understand how to do
 that. Any help you can give with this would be greatly appreciated. This
 problem has me stomped so much I almost wanted to give up for a while on
 Python. But I still have a love for its goals and its philosophy and
 that's what continues to draw me to it. I've very new to programming in
 general and thats why I when I came across Python I wanted to learn it
 and even work primarily a Python Developer one day. I know that most
 likely this question that has been addressed on the website. However I
 just kinda felt frustrated and wanted to speak with someone directly
 since I don't know much about programming at all. Below in the
 attachments are some the errors I keep getting even with IDLE. Please
 have a good day and thank you for taking out the time to listen to me.  
   
Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:54:25) [MSC v.1900 64 bit 
(AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import pip
>>> import pyperclip
Traceback (most recent call last):
  File "", line 1, in 
import pyperclip
ImportError: No module named 'pyperclip'
>>> 
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor