Adding pyHook into library

174 views
Skip to first unread message

Ki Max

unread,
Nov 2, 2014, 10:26:02 PM11/2/14
to portabl...@googlegroups.com
Hello everyone,
I've been programming in python for a while now, but it was always annoyed about the fact that you cant give your script another person and he will be able to execute it without IDLE etc.
So I just downloaded Portable Python and installed it on my USB stick and all works fine which is very nice! :)
I am just trying to get PyHook onto my stick library but I didnt get the explanation of how to do it correctly i guess.
I copied cmd into the Portable Python folder (I'm using 2.7.6 btw) and typed: cd G:\Portable Python 2.7.6.1\App\Scripts .
Now in the right folder i typed easy_install.exe pyhook(also tried PyHook, pyHook, Pyhook). It seemed to do anything but then i just got this message:

Searching for Pyhook
Reading http://pypi.python.org/simple/Pyhook/
Reading http://pyhook.wiki.sourceforge.net/
Reading http://www.cs.unc.edu/~parente
Reading http://www.sourceforge.net/projects/uncassist
Reading http://www.sourceforge.net/projects/uncassist/
Reading https://sourceforge.net/project/showfiles.php?group_id=235202
No local packages or download links found for Pyhook
Best match: None
Traceback (most recent call last):
  File "G:\Portable Python 2.7.6.1\App\Scripts\easy_install-script.py", line 8,
in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
  File "G:\Portable Python 2.7.6.1\App\lib\site-packages\setuptools\command\easy
_install.py", line 1712, in main
    with_ei_usage(lambda:
  File "G:\Portable Python 2.7.6.1\App\lib\site-packages\setuptools\command\easy
_install.py", line 1700, in with_ei_usage
    return f()
  File "G:\Portable Python 2.7.6.1\App\lib\site-packages\setuptools\command\easy
_install.py", line 1716, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "G:\Portable Python 2.7.6.1\App\lib\distutils\core.py", line 152, in setu
p
    dist.run_commands()
  File "G:\Portable Python 2.7.6.1\App\lib\distutils\dist.py", line 953, in run_
commands
    self.run_command(cmd)
  File "G:\Portable Python 2.7.6.1\App\lib\distutils\dist.py", line 972, in run_
command
    cmd_obj.run()
  File "G:\Portable Python 2.7.6.1\App\lib\site-packages\setuptools\command\easy
_install.py", line 211, in run
    self.easy_install(spec, not self.no_deps)
  File "G:\Portable Python 2.7.6.1\App\lib\site-packages\setuptools\command\easy
_install.py", line 434, in easy_install
    self.local_index
  File "G:\Portable Python 2.7.6.1\App\lib\site-packages\setuptools\package_inde
x.py", line 475, in fetch_distribution
    return dist.clone(location=self.download(dist.location, tmpdir))
AttributeError: 'NoneType' object has no attribute 'clone'

could you please help me with this?
Im sorry if i did smth stupid...
Reply all
Reply to author
Forward
0 new messages