I have downloaded the source in a zip file. I then moved it to /Library/Python/2.6/site-packages/mellort-reddit_api-2d91358. I have been trying to install it with: python setup.py install. This has not worked. I then tried to install it with python /Library/Python/2.6/site-packages/mellort-reddit_api-2d91358/setup.py install, but that would not work as well.
On both occasions it said:
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/mellort-reddit_api-2d91358/setup.py", line 9, in <module>
open('reddit/__init__.py').read()).group(1)
IOError: [Errno 2] No such file or directory: 'reddit/__init__.py'
I think it cannot find the:
reddit/__init__.py
I have only tried putting the file in the python 2.6 folder.
Any thoughts? If you could provide step by step instructions I would be extremely happy.
I am using mac if that makes a difference.
If you have used this module before (found at https://github.com/mellort/reddit_api) how did you deal with this issue?
You can install it through
pip:update after OP’s comments:
for a mac you can do this:
more info on how to install pip on a mac can be found here.