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!
sudo pip install virtualenv
to create virtualenv:
virtualenv my_envto activate virtual env:
source my_env/bin/activatepip install xlwt
ref: http://pythoncentral.io/how-to-install-virtualenv-python/
Comments
Post a Comment