python - xlwt on ubuntu installs but does not import -


xlwt installs in following path:

/usr/local/lib/python2.7/dist-packages 

successfully pip or apt-get or easy_install.

however, when try import, gives error no module named xlwt.

all relevant answers on site pip install, xlwt installed. workaround, added dist packages python path. why not searching in dist packages?

i'm using ubuntu 16.04 , python 2.7

for python , django related projects preferred use virtualenv!

  1. sudo pip install virtualenv

  2. to create virtualenv:

    virtualenv my_env

  3. to activate virtual env:

    source my_env/bin/activate

  4. pip install xlwt

ref: http://pythoncentral.io/how-to-install-virtualenv-python/


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -