python 3.x - assertionerror with python3 and virtualenv -
in ubuntu lucid,i have python2.6 default.i wanted install python 3.3.1.
i extracted python-3.3.1.tar.bz2 home folder sothat /home/me/python-3.3.1 contains files.then per readme did
./configure make make test sudo make install this created executable named python in /home/me/python-3.3.1 folder.
also, nowi have several python3* files in /usr/local/bin directory.
among them ,
python3 link executable,
python3.3 executable,
python3.3m executable.
i wanted create virtualenv python3 , tried following
sudo virtualenv envpy331 --distribute --no-site-packages --python=/home/me/python-3.3.1/python this produced assertionerror
file "/usr/local/lib/python2.6/dist-packages/virtualenv-1.8.2-py2.6.egg/virtualenv.py", line 2471, in <module> main() file "/usr/local/lib/python2.6/dist-packages/virtualenv-1.8.2-py2.6.egg/virtualenv.py", line 942, in main never_download=options.never_download) file "/usr/local/lib/python2.6/dist-packages/virtualenv-1.8.2-py2.6.egg/virtualenv.py", line 1043, in create_environment site_packages=site_packages, clear=clear)) file "/usr/local/lib/python2.6/dist-packages/virtualenv-1.8.2-py2.6.egg/virtualenv.py", line 1207, in install_python copy_required_modules(home_dir) file "/usr/local/lib/python2.6/dist-packages/virtualenv-1.8.2-py2.6.egg/virtualenv.py", line 1159, in copy_required_modules dst_filename = change_prefix(filename, dst_prefix) file "/usr/local/lib/python2.6/dist-packages/virtualenv-1.8.2-py2.6.egg/virtualenv.py", line 1134, in change_prefix (filename, prefixes) assertionerror: filename /home/me/python-3.3.1/lib/os.py not start of these prefixes: ['/usr/local'] what need correct this? need remove python3 installation ,or need reconfigure prefix=/usr/local ? , again run install?
you've installed it. point installed python3. try this:
virtualenv envpy331 --python=/usr/local/bin/python3.3
Comments
Post a Comment