I am running Ubuntu 12.10 that has python 2.7 as its default. I have installed python 3.3 in /opt/python3.3 (using ./configure --prefix=/opt/python3.3). My problem is with the virtual environment. Created one in ~/python33 and activated it. Now after downloading, when I run distribute_setup.py within the venv, the installation defaults to 2.7. And this happens with all the subsequent easy_installs. For reference, here are the final few prompts:
Extracting distribute-0.6.35-py2.7.egg to /usr/local/lib/python2.7/dist-packages ... Installed /usr/local/lib/python2.7/dist-packages/distribute-0.6.35-py2.7.egg
I created a symlink pointing to /opt/python3.3/bin/python3 as ~/bin/python33 and tried running distribute_setup.py with this executable. I tried this from within the venv and without. :). But this is what I get for both:
Extracting in /tmp/tmpl3ackg Traceback (most recent call last): File "distribute_setup.py", line 546, in <module> sys.exit(main()) File "distribute_setup.py", line 543, in main return _install(tarball, _build_install_args(options)) File "distribute_setup.py", line 76, in _install tar = tarfile.open(tarball) File "/opt/python3.3/lib/python3.3/tarfile.py", line 1571, in open raise ReadError("file could not be opened successfully") tarfile.ReadError: file could not be opened successfully
And got the same result with :
sudo /opt/python3.3/bin/python3 distribute_setup.py
~/python33/lib/python3.3/site-packages is empty.
Thanks for your help.