Ask Your Question
0

How to update a simpleCV modual from Git Hub?

asked 2013-12-02 11:06:33 -0500

dangerboy gravatar image

I would like to update my Blob.py modual but I don't know how?

I see that the Blob.py modual on my computer is missing functions that are included in a version seen on Git Hub.

I tried to copy and paste the modual, but that didn't seem to work? I see that there is a Blob.pyc within my computer's folder tree but is NOT found on Git Hub. I assume this might be the reason?

Sorry for such a basic question. I'm still new to Python and Git Hub.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-12-02 11:55:52 -0500

dangerboy gravatar image

updated 2013-12-02 11:57:29 -0500

ok... I'm not sure this is how you do it officially... but this is what worked for me... (Windows 7)

First, to be safe take the old modual you wish to update; 'Blob.py' and 'Blob.pyc' in my case within my folder 'C:\Python27\Lib\site-packages\SimpleCV\Features'..., and make a copy as 'Blobold.py' and 'Blobold.pyc'. This is just to be safe! if something goes wrong, you can go back...

Second, copy the code from GitHub using copy-and-paste into your text editor. The modual I wanted was 'Blob.py' and was found on GitHub within 'SimpleCV/Features/'.

Third, save this copy and pasted file as the new 'Blob.py' within your Python folder: 'C:\Python27\Lib\site-packages\SimpleCV\Features' (as on my computer)...

Fourth, open a command window and CD into your 'C:\Python27' folder.

Last!, run the following command: (found on the simplecv.org install instructions for Windows 7)

pip install https://github.com/sightmac...

That seemed to work... but when I ran the function I wanted, I found that I had to repeat the above steps for yet another SimpleCV modual.

I'm new to python and GitHub, so there might be a more elegant way to update moduals?...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-12-02 11:06:33 -0500

Seen: 92 times

Last updated: Dec 02 '13