Can't get pip to work - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Can't get pip to work (/thread-3252.html) Pages:
1
2
|
RE: Can't get pip to work - metulburr - May-09-2017 (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. 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. RE: Can't get pip to work - KBingo - May-11-2017 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:\> RE: Can't get pip to work - snippsat - May-11-2017 Run cmd as administrator,try again. RE: Can't get pip to work - KBingo - May-11-2017 (May-11-2017, 06:05 AM)snippsat Wrote: Run cmd as administrator,try again. That worked. Thank you! |