擅长:python、mysql、java
<p>这将获得python 2.x的sqlalchemy版本0.8.4
ubuntu更新软件包的速度很慢</p>
<pre><code>sudo apt-get install python3-sqlalchemy
</code></pre>
<p>所以对于Python 3/Ubuntu peeps,这里是如何安装最新版本的sqlalchemy</p>
<pre><code>sudo apt-get install python3-pip
# Now you have pip3
sudo apt-get install python3-all-dev
# Required for sqlalchemy's c extensions to be installed
sudo pip3 install SQLAlchemy
# note using pip, not pip3, will install for Python 2.7
:~$ python3
>>> import sqlalchemy
>>> sqlalchemy.__version__
>>> '0.9.8'
>>> print("Who's the man?")
>>> You are baby!
>>> quit()
</code></pre>