Python - Ubuntu installation for SQLAlchemy not working

I am trying to configure ubuntu so that I can do some work, and I have time trying to install SQLAlchemy.

I have tried almost everything that I can find in textbooks, etc., and the last position I am in is:

easy_install SQLAchemyseems to work fine and install version 0.7.4 (as far as I can tell)

If I switch to python and try import sqlalchemy, I get no module named sqlalchemyI also found a script that lists all the modules in the python version and is not listed there.

I'm new to Ubuntu, so I feel a little in the dark. I'm on Python 2.7 32bit (new version) Ubuntu 12.04 (all updated). Any suggestions?

EDIT: I looked at / usr / bin and saw that there are three folders that may be relevant - python, python2and python2.7this may be true ...

+5
source share
1 answer

you can also use the version directly from ubuntu repositories:

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

if you used sudo easy_installthen packages are usually installed in /usr/local/lib/pythonX.X/. The problem may be that easy_install(and also pip) does not specify the correct representations of the files, so each installed file is read-only.

You can avoid this by using the parameter --userduring installation, then the packages are installed in the user's site directory ( ~/.local/lib/pythonX.X)

+12
source

All Articles