Oct 7, 2018

[HDGEM] Using virtualenv to solve problems stem from collisions between different Python interpreters and / or modules with similar names.


  •     Run pip install virtualenv to install virtualenv.
  •     Run virtualenv venv to create a Python virtual environment in your current directory.
  •     Run source venv/bin/activate to activate the virtual environment.
  •     Install your dependencies (mysql) using pip as you normally would and try running the script again.


More info on virtualenv can be found in the official docs.

--
Posted By Blogger to HDGEM at 4/04/2017 09:25:00 AM