Python Forum
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't get pip to work
#12
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:\>
Reply


Messages In This Thread
Can't get pip to work - by KBingo - May-09-2017, 01:58 AM
RE: Can't get pip to work - by metulburr - May-09-2017, 02:35 AM
RE: Can't get pip to work - by KBingo - May-09-2017, 03:26 AM
RE: Can't get pip to work - by volcano63 - May-09-2017, 07:33 AM
RE: Can't get pip to work - by snippsat - May-09-2017, 01:23 PM
RE: Can't get pip to work - by metulburr - May-09-2017, 02:34 PM
RE: Can't get pip to work - by sparkz_alot - May-09-2017, 01:46 PM
RE: Can't get pip to work - by metulburr - May-09-2017, 02:27 PM
RE: Can't get pip to work - by sparkz_alot - May-09-2017, 03:35 PM
RE: Can't get pip to work - by snippsat - May-09-2017, 03:51 PM
RE: Can't get pip to work - by metulburr - May-09-2017, 05:22 PM
RE: Can't get pip to work - by KBingo - May-11-2017, 02:45 AM
RE: Can't get pip to work - by snippsat - May-11-2017, 06:05 AM
RE: Can't get pip to work - by KBingo - May-11-2017, 09:35 PM

Forum Jump:

User Panel Messages

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