Thank you everyone for your suggestions. I uninstalled Python and reinstalled it using the tutorial @
snippsat made. The command line recognizes Python and pip, but when I tried to install pyperclip, I got an error:
C:\>pip install pyperclip
Collecting pyperclip
Downloading pyperclip-1.5.27.zip
Installing collected packages: pyperclip
Running setup.py install for pyperclip ... error
Complete output from command "c:\program files (x86)\python36-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\KELLYM~1\\AppData\\Local\\Temp\\pip-build-4ocavlg4\\pyperclip\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\KELLYM~1\AppData\Local\Temp\pip-rq_pzhob-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\pyperclip
copying pyperclip\clipboards.py -> build\lib\pyperclip
copying pyperclip\exceptions.py -> build\lib\pyperclip
copying pyperclip\windows.py -> build\lib\pyperclip
copying pyperclip\__init__.py -> build\lib\pyperclip
running install_lib
creating c:\program files (x86)\python36-32\Lib\site-packages\pyperclip
error: could not create 'c:\program files (x86)\python36-32\Lib\site-packages\pyperclip': Access is denied
----------------------------------------
Command ""c:\program files (x86)\python36-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\KELLYM~1\\AppData\\Local\\Temp\\pip-build-4ocavlg4\\pyperclip\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\KELLYM~1\AppData\Local\Temp\pip-rq_pzhob-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\KELLYM~1\AppData\Local\Temp\pip-build-4ocavlg4\pyperclip\
C:\>
The same error happened when I tried the command
python -m pip install
:
C:\>python -m pip install pyperclip
Collecting pyperclip
Using cached pyperclip-1.5.27.zip
Installing collected packages: pyperclip
Running setup.py install for pyperclip ... error
Complete output from command "C:\Program Files (x86)\Python36-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\KELLYM~1\\AppData\\Local\\Temp\\pip-build-qp1dsxy7\\pyperclip\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\KELLYM~1\AppData\Local\Temp\pip-2ogd3ow8-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\pyperclip
copying pyperclip\clipboards.py -> build\lib\pyperclip
copying pyperclip\exceptions.py -> build\lib\pyperclip
copying pyperclip\windows.py -> build\lib\pyperclip
copying pyperclip\__init__.py -> build\lib\pyperclip
running install_lib
creating C:\Program Files (x86)\Python36-32\Lib\site-packages\pyperclip
error: could not create 'C:\Program Files (x86)\Python36-32\Lib\site-packages\pyperclip': Access is denied
----------------------------------------
Command ""C:\Program Files (x86)\Python36-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\KELLYM~1\\AppData\\Local\\Temp\\pip-build-qp1dsxy7\\pyperclip\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\KELLYM~1\AppData\Local\Temp\pip-2ogd3ow8-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\KELLYM~1\AppData\Local\Temp\pip-build-qp1dsxy7\pyperclip\
C:\>