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
620 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

+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,530 points
74 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,540 points
1,028 views
+1 vote
2 answers

Not able to install speech_recognition in python: ModuleNotFoundError: No module named 'speech_recognition'

Hey. You have to use SpeechRecognition as module ...READ MORE

answered Nov 28, 2018 in Python by Omkar
• 69,060 points
7,918 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
141 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,530 points
3,208 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
322 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
309 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
210 views