0

i downloaded python 3.5.2, i am planning on making a keylogger i need to install pyhook and pywin but i dont know how. every body recommends me to install it by pip but i dont seem to have that module. i open up the idle and import pip, but it gives me the error message saying i dont have that module installed even though people say pip comes with versions 3.4+.. where and how do i install this pip module? i am on a windows ver. 10, 64 bits, python 3.5. any help is aprecciated.. i am new by the way go easy on me..

user6554254
  • 77
  • 1
  • 1
  • 8
  • 1
    pip isn't a module. It's an executable program that you invoke *outside* of Python. – Makoto Aug 11 '16 at 20:57
  • @Makoto Correct. You don't need to use `pip` within a python script, you simply do `pip install pyhook` etc. in a terminal. However, I just tried to `import pip` in python 3 and it _does_ work. So if OP can't do that then there might indeed be a problem. – Anonymous Aug 11 '16 at 20:58

3 Answers3

2

You need to make sure the pip executable is in your %PATH% variable. For me, the pip executable is located in the Scripts directory of my Python installation. That turned out to be C:\Python34\Scripts. So you should find out where this location is for you and then add it to your path variable.

Useful SO answer.

Community
  • 1
  • 1
gr1zzly be4r
  • 1,844
  • 1
  • 12
  • 31
  • when i installed python 3.5 i selected the option for it to add to path and it said pip was included aswell but i go to comand prompt type in everyway for it to pop up and nothing. the message error is either syntax, module not found or specific route unknown.. should i downgrade to 2.7? maybe 3.5 just isnt compatible with windows 10. – user6554254 Aug 13 '16 at 17:59
  • I would just make sure that it's there by manually editing your path variable. – gr1zzly be4r Aug 14 '16 at 16:05
  • i set my laziness aside and did it.. thank you so much. – user6554254 Aug 18 '16 at 06:28
  • You can mark the answer as correct so that others know what worked to fix your problem :). – gr1zzly be4r Aug 18 '16 at 21:12
1

Sometimes when pip is not installed by default, use this:

python -m ensurepip --default-pip
0

I am using Python 3.4 and was getting the error that it didn't exist. I ran this upgrade and I can now import pyperclip which was one of the packages in that module.

C:\Python35-32\Scripts>python -m pip install --upgrade pip

Output:

Collecting pip
  Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)
    100% |################################| 1.2MB 259kB/s
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Uninstalling pip-8.1.1:
      Successfully uninstalled pip-8.1.1
Successfully installed pip-8.1.2
Roope
  • 4,147
  • 2
  • 23
  • 49
bgreen
  • 19
  • 1