I compiled Python 2.7 and Python 3.3.3 in my VPS. The compilation of Python 2.7 is:
wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
tar -jxvf Python-2.7.3.tar.bz2
cd Python-2.7.3
./configure
make
make install
The compilation of Python 3.3 is:
wget http://python.org/ftp/python/3.3.3/Python-3.3.3.tar.bz2
tar -jxvf Python-3.3.3.tar.bz2
cd Python-3.3.3
./configure --prefix=/usr/local/python-3.3.3
make
make install
ln -s /usr/local/python-3.3.3/bin/python3.3 /usr/local/bin/python3.3
as3:/usr/local/python-3.3.3/lib/python3.3# python3.3 letterpress.py ~/letterpress/press_folder
Traceback (most recent call last):
File "letterpress.py", line 27, in
import pyinotify
ImportError: No module named 'pyinotify'
as3:/usr/local/python-3.3.3/lib/python3.3# pip install pyinotify
Requirement already satisfied (use --upgrade to upgrade): pyinotify in /usr/local/lib/python2.7/site-packages/pyinotify-0.9.4-py2.7.egg
Cleaning up...
as3:/usr/local/python-3.3.3/lib/python3.3#
In the above, pyinotify is installed to Python 2.7 environment, now how can I install pyinotify to Python 3.3 environment?