Python Forum
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't get pip to work
#11
(May-09-2017, 03:51 PM)snippsat Wrote:
(May-09-2017, 02:34 PM)metulburr Wrote: This should be a tutorial....this is repeated so many times.
Can make a tutorial,made it here.
Give feedback if missing anything.

Dont see anything off at first, but it wouldnt surprise me it to change on the fly as others ask questions about things that are missing.
Recommended Tutorials:
Reply
#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
#13
Run cmd as administrator,try again.
Reply
#14
(May-11-2017, 06:05 AM)snippsat Wrote: Run cmd as administrator,try again.

That worked.  Thank you!
Reply


Forum Jump:

User Panel Messages

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