![]() ![]() Is this the only route to take to get the correct mysql-connector? or is there another way i can get pip3 (for p圓. I've tried other things to try get pip3 such as 'easy-install pip3' which doesnt seem to work either. however, when i get as far as pip install it doesnt seem to get the mysql-connector that i need, and running 'pip -version' from inside the virtualenv it tells me that the python2.7 pip is being used. Says to create the virtual environment, activate it and then proceed to pip install whatever package you need. How to install pip for python 3 in ubuntu 12.04 LTS The goal of PyMySQL is to be a drop-in replacement for MySQLdb. To install it for python 3 i believe you have to use the python3 pip instead of the python2 pip, i read that somewhere but im not sure if its correct, does the python3 pip know to get the correct connector or do you have to specify the specific version like 'pip install mysql-connector1.2'.Īnyways, i was finding it difficult to get the p圓 pip, then i came across a post advising the use of 'virtualenv' to make it easier to work with different versions of python. It implements the Python Database API v2.0 and contains a pure-Python MySQL client library. I am trying to install the python mysql-connector for python3.2, i was able to use pip to install it for python2.7 with 'pip install mysql-connector'. The configuration file is located in the MySQL program data directory (for example: C:\ProgramData\MySQL\MySQL Server 5.6 on Windows or /etc/mysql/ on Linux.My experience is minimal with Linux so i need a little help! Some of these changes improve the channelling performance, and some (such as setting the SQL mode to use ANSI quotes) are required changes. There are some tuning parameters in the my.ini (Windows) or my.cnf (Linux) configuration file that you should adjust. To check if your system already contains Python, go through the following instructions: Open the Command line (search for cmd in the Run dialog ( R ).
0 Comments
Leave a Reply. |