May-09-2017, 01:58 AM
I just started teaching myself how to program, and I'm using Python 3.6 and Windows 10. I want to use pip to install the pyperclip module. I know I can download the zip file to install pyperclip, but that's not the whole point. I also want to learn how to use pip. However, when I tried to do the installation, I got a SyntaxError. I downloaded and ran get-pip.py to make sure I had all the scripts and tools I needed for this, but I still get the same error. Below is a copy of my command line. Can someone please help me figure out what is going wrong?
Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> python -m pip install pyperclip
File "<stdin>", line 1
python -m pip install pyperclip
^
SyntaxError: invalid syntax
>>> pip install pyperclip
File "<stdin>", line 1
pip install pyperclip
^
SyntaxError: invalid syntax
>>> pip install 'pyperclip'
File "<stdin>", line 1
pip install 'pyperclip'
^
SyntaxError: invalid syntax
>>>
Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> python -m pip install pyperclip
File "<stdin>", line 1
python -m pip install pyperclip
^
SyntaxError: invalid syntax
>>> pip install pyperclip
File "<stdin>", line 1
pip install pyperclip
^
SyntaxError: invalid syntax
>>> pip install 'pyperclip'
File "<stdin>", line 1
pip install 'pyperclip'
^
SyntaxError: invalid syntax
>>>