Can i use /dev and /dev/shm to install python packages



I’m using Cloud9 for my project, but I need more than the 8GB in “/” to install all the python packages.

Can I add some of the memory from /dev and /dev/shm to “/”.
If understand right the “/” directory is the disk memory, what do the other two mean ?

Thank you.