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?
May 14, 2019 in Python by ana1504.k
• 7,890 points
1,018 views

1 answer to this question.

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 May 14, 2019 by SDeb
• 13,250 points

Related Questions In Python

0 votes
1 answer

How to Install pip for python 3.7 on Ubuntu 18?

The command you're looking for is: python3.7 -m ...READ MORE

answered 6 days ago in Python by Gitika
• 50,540 points
18 views
+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
• 57,700 points
98 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,240 points
222 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
• 57,700 points
3,815 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, 2019 in Python by SDeb
• 13,250 points
561 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
• 13,250 points
760 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, 2019 in Python by SDeb
• 13,250 points
321 views