Python - Ubuntu install for SQLAlchemy not working

0 votes
I'm trying to setup a ubuntu box so I can do some work, and I'm having a tough time trying to get SQLAlchemy installed.

I have tried pretty much everything I can find on tutorials etc, and the latest position I find myself in is:

easy_install SQLAchemy seems to work ok, and installs version 0.7.4 (as far as I can tell)

If I go into python and try import sqlalchemy I get no module named sqlalchemy I also found a script that lists all the modules on the version of python, and its not listed there.

I am new to Ubuntu, so I am not sure about the correct steps. I'm on Python 2.7 32bit and Ubuntu 12.04. Can anybody help me with this?
6 days ago in Python by ana1504.k
• 5,870 points
6 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
You can try using the version directly from the ubuntu repositories:

sudo apt-get install python-sqlalchemy # or python3-sqlalchemy
 

if you used sudo easy_install, then the packages usually get installed in /usr/local/lib/pythonX.X/. The problem could be that easy_install (and also pip) doesn't set the file premissions right, so everyting installed is only readable by root.

You can avoid this by using the --user option when installing, then the packages are installed in the user site directory (~/.local/lib/pythonX.X)
answered 6 days ago by SDeb
• 9,300 points

Related Questions In Python

+1 vote
1 answer

Can installin pip for python install dependencies aswell?

As long as the dependency is listed ...READ MORE

answered Sep 26, 2018 in Python by Priyaj
• 56,100 points
30 views
0 votes
1 answer

How to install OpenCV for python3 in Ubuntu?

I found this: https://pypi.python.org/pypi/opencv-python OpenCV on wheels 'Unofficial OpenCV packages ...READ MORE

answered Nov 28, 2018 in Python by Nymeria
• 3,500 points
114 views
0 votes
2 answers
0 votes
1 answer

Install Python on Ubuntu

@Abha you are right about pre-installation of python, ...READ MORE

answered Mar 1 in Python by Pratibha
• 2,520 points
13 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,170 points
47 views
0 votes
1 answer

Run python script on terminal (ubuntu)?

Your shell in the terminal has a concept ...READ MORE

answered Oct 31, 2018 in Python by Priyaj
• 56,100 points
370 views
0 votes
1 answer

How to enable python3 in vim?

You didn't tell us the platform you're ...READ MORE

answered Jan 21 in Python by SDeb
• 9,300 points
53 views
0 votes
1 answer

How to install OpenCV for Python 2.7?

The official OpenCV installer does not install ...READ MORE

answered Nov 14, 2018 in Python by SDeb
• 9,300 points
44 views
0 votes
1 answer

How to get travis to fail if tests do not have enough coverage for python?

if you add the --fail-under switch to ...READ MORE

answered May 10 in Python by SDeb
• 9,300 points
4 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.