I am trying to establish MYSQL connection with my twisted server script. I found out that txMYSQL is a good choice to use, I dowloaded the package out of Github and tried installing from the setup.py file, but it didn't work.
I tried inslalling txMYSQL by using easy_install txmysql but it dosen't appear to be found through this command since its not on pythons server.
How can I install txMYSQL ?
I am currently using python 2.7.8 on my Windows machine.
Try to install using pip and referencing Github repo. I tried here and worked well on a Ubuntu 12.04.4
pip install git+https://github.com/hybridlogic/txMySQL.git
Related
I am trying to install mysqlclient on mac to use mysql in a django project. I have made sure that setup tools is installed and that mysql connector c is installed as well. I keep getting the error Command "python setup.py egg_info" failed with error code 1 in. This is my first django project since switching from rails. Is there something I am missing? I am using python 3 and I use pip install mysqlclient.
I was able to fix this by running pip install mysql. I do not understand why this worked because I already had MySQL installed on my system and had been using it.
I am going to assume it is because Python uses environments and MySQL wasn't installed in the environment but I would like to know for sure.
Firstly I'm a first year computer science major so inexpeirence maybe my problem here but I can't find a solid solution after about 4 hours of googling and stumbling about.
I'm trying to install a library from github to use in python3.4 to play around with and learn about using api's. I'm using a Chromebook (Asus C300m) with ubuntu dual booted for coding.
I've tried various methods of using pip to install the library. It seems using the default pip command is broken for my version of ubuntu and throws an "incomplete read" error.
I tried using the get-pip.py file instead and that seems to work. But that installs the library only to the 2.7 version of python that came with the OS install not the 3.4 version I have to use for class and am currently learning in.
I also tried installing and using pip3 but that throws an "incomplete read" error just like the default pip command did.
I'm very willing to link my failed console commands but there have been so many I'm not sure which would be most helpful.
Thanks for any help anyone can provide.
Hi I'm trying to run GCM sample fromhttp://developer.android.com/google/gcm/ccs.html on osx but i'm unable to install xmpp library. On Linux installation apt-get install python-xmpp resolved case. For osx I couldn't find anything
There is another repository called ActiveState PyPM
Try to download it from here:
http://www.activestate.com/activepython/downloads
install it, and after, write on a cmd line:
pypm install xmpppy
That worked for me
I'm following Heroku's "Getting started with Django on Heroku" article and am getting a long series of errors on "pip install psycopg2". Django 1.4.3 and PostgreSQL 9.2.2 are already installed, and yes, the postgres \bin\ directory is on the PATH.
Any ideas?
It doesn't look like Psycopg on Windows is as simple as using pip. The Psycopg website recommends using these Windows builds.
As a windows users running through the Python Getting Started tutorial on Heroku I ran into a similar issue. I found pycopg2 here: http://www.stickpeople.com/projects/python/win-psycopg/
And then used easy_install in the virtual env directory.
I'm new to using mac and tornado. I have installed easy_install and tried installing tornado but I am keep getting "Permission denied"
easy_install tornado
Searching for tornado
Best match: tornado 2.3
Processing tornado-2.3-py2.7.egg
Adding tornado 2.3 to easy-install.pth file
error: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/easy-install.pth: Permission denied
What is going wrong?
Try running it like this:
sudo easy_install tornado
When you are using stock python on OSX the easy_install command will install tornado system wide and it therefore needs admin rights. When using homebrew python (e.g. installed brew and python with "brew install python") then you can install python packages without having to do the sudo.
One word of advice: when working on a lot of python projects it's better to use virtualenv for installing python deps; that way you can have multiple isolated python environments AND you don't need the sudo.
You might want to try running that command as root if you want to install tornado system-wide or take a look at virtualenv for installing python packages in a sandboxed environment. Also, I recommend pythonbrew if you want to experiment with various versions of Python.