How to Setup Python Environment For Machine Learning as follows: Set up Python 3 and Pipsudo apt-get install python3-pip nano ~/.bashrc alias python='python3' save the file and reload source ~/.bashrc install relevant packages: sudo pip install virtualenv virtualenvwrapper Edit ~/.bashrc file.Place these 3 lines right at the bottom and save it: export WORKON_HOME=$HOME/.virtualenvs export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/virtualenv wrapper.sh save the file and reload Messtone changes: source ~/.bashrc create virtual environment like so: mkvirtualenv ml enter it,do this: working ml If Messtone need to exit run this command: deactivate Machine Learning librarian the list of all the packages Messtone wish to install like so: numpy scipy pandas matplotlib scikit-learn pip install -r requirements.txt

Leave a comment