heirloom Posted November 15, 2017 Posted November 15, 2017 I could use the rest of modules by copying them to a folder but it's not working for this. So if you can install python-mysqldb.Server: johnnyUser: heirloom Thanks. Quote
Krydos Posted November 15, 2017 Posted November 15, 2017 Which version of python are you using? Quote
heirloom Posted November 15, 2017 Author Posted November 15, 2017 (edited) I think it's 2.7. It's the one that is called when doing /usr/bin/python in cronjob. And in the file I have written #!/usr/bin/env python Edited November 15, 2017 by heirloom Quote
Krydos Posted November 15, 2017 Posted November 15, 2017 That is version 2.6.6 and it is too old to install new modules. You'll need to use #!/usr/bin/python2.7 or #!/usr/bin/python3.6 if you want to use mysqldb. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.