Computer >> Computer tutorials >  >> Programming >> Python

How to install Matplotlib on Mac 10.7 in virtualenv?


To install Matplotlib in virtualenv, we can take the following steps in terminal −

  • vritualenv <env_name e.g env>
  • source env/bin/activate
  • pip install matplotlib
  • pip freeze > requirements.txt
  • cat requirements.txt (To see the Matplotlib details)