Tag Info

New answers tagged

2

Python 2 and Python 3 have different sets of installed packages. I just installed nltk on both and am able to import in both. pip2 install nltk pip3 install nltk


0

I had this problem after a ppa-purge command. I resolved it following the official Ubuntu Community Help on this page: The following are the commands listed. Step 9 Ubuntu Software Center fails to open If the Ubuntu Software Center fails to open, then please execute these Terminal commands: sudo rm /usr/lib/python*/dist-packages/__pycache__/*pyc sudo ...


0

The virtualenv.py should be compatible between python2.7 and python3.4.0. And yours is excepting because the python3 version cannot load the (renamed) ConfigParser module. You seem to be running an older version of virtualenvwrapper. On my system virtualenv.py looks like: try: import ConfigParser except ImportError: import configparser as ...


0

fixed by reinstalling ubuntu, i think i had screwed up python3 installation with some "apt-get" packages


0

In addition to the nice reply above, in order to run the example scripts (e.g., plot_multilabel.py) one needs to make sure that python3_tk package is present sudo apt-get install python3-tk


0

No repro. $ python3 -m venv MyVenv $ source MyVenv/bin/activate (MyVenv) $ which pip /home/oli/Desktop/MyVenv/bin/pip (MyVenv) $ which pip3 /home/oli/Desktop/MyVenv/bin/pip3 I'd try again (honestly, those were the commands I used) but failing that, with most virtualenv-related things, if you call the binary directly, it'll use the right environment even ...


0

Or simply, you just create a symbolic link to python3.4 in /usr/bin (of course, you should delete old symbolic link): sudo ln -s /usr/bin/python3.4 /usr/bin/python



Top 50 recent answers are included