To create a virtual environment running Python version 3 using VirtualEnv run the following command:

virtualenv env_name -p python3

We use the -p  option to specify the version of Python we want to use. Without this, it will default to Python version 2 which comes installed by default on macOS.

After activating the virtual environment with source bin/activate , run python --version  to show the version of python in use.

Tudun Wada, Nassarawa, Nigeria

203 °F scattered clouds

Hello, I just started working on my first Rails project. Well, it’s not really my own project as I am using some kind of a manual. A book called Rails Solutions: Ruby on Rails Made Easy, written by Justin Williams. The book teaches you rails while building a Craigslist clone.The book is supposed to be for beginners of rails but from my experience I think you really need to first have had a basic course in rails and then use that book. There are so many things that the author doesn’t explain in depth, it’s like just skimming through. The first time I read the book I couldn’t understand why I had to write most of these codes, so I gave up at the 8th chapter (I don’t think I understood anything that came before that). I read other books after that then I went back to it, and kazaam, everything was much clearer. Anyway, the reason I am writing this is that I have almost finished the project (railslist, instead of craigslist) and if anyone else has had to go through the same tutorial, do not hesitate to share your experience with me. Maybe we both have seen something that the other hasn’t.  Also, anyone interested in a Craigslist clone, contact me. I will be happy to give you the fully finished script.