Error in importing xwlt package - python

I am getting the below error even after doing a python setup.py install for xlwt.
ImportError: No Module named xlwt
I have tried installing using python wheel
pip3 install xlwt-1.3.0-py2.py3-none-any.whl
and I have also tried easy_installer, however the error is still there
What might be the issue?
I am using a windows 7 environment.

Command instruction to install xlwt:
pip install xlwt

Related

ModuleNotFoundError: No module named 'kmodes'

I have tried installing it using pip install kmodes and it says that "Requirement is satisfied" but am not being able to import the library even after that.
The list of libraries doesn't have kmodes even after installing. Attaching screenshot for reference. What is happening here?
from kmodes.kprototypes import KPrototypes
ModuleNotFoundError: No module named 'kmodes'
Maybe your PIP is installing to the wrong version of python and the code you are running is being interreted by a later version
Try copying your python executable path and running this
C:\Users\username\AppData\Local\Programs\Python\Python39\python.exe -m pip install kmodes
Another reason is that kmodes did not install properly the first time
Try running this as an administrator
pip uninstall kmodes && pip install kmodes

Getting error even the package is installed

I'm new learner. I installed openpyxl module. And I have it in my directory. But when I want to use it I get error :
"ModuleNotFoundError: No module named 'openpyxl'"
any help?
This type of errors (ModuleNotFoundError) is usually caused due to various versions of Python being installed on your system. If you have both Python 2 and 3 installed, use pip2 or pip3 to install your module.
pip2 install openpyxl # for python2
pip3 install openpyxl # for python3

Issues running Matplotlib/PyQt- Error

I am having problems with my matplotlib/Pyqt. I have tried several different things like uninstalling matplotlib using conda remove and pip uninstall and then tried re-installing. When I try re-installing matplotlib through conda reinstall, I get the following error:
IOError: [Errno 2] No such file or directory: u'C:\Anaconda2\pkgs\pandas-0.19.2-np111py27_1\info\index.json'
I seem to be able to install matplotlib via pip install, but when I try running my code in jupyter notbook I get the following error:
ImportError: No module named PyQt4.
Any suggestions? I am using Python version 2.7.13 and Anaconda version 4.0.0 (64-bit) windows operator.
For Anaconda try this :
conda clean --packages --tarballs
conda update qt
or just Re-install it.
Finally, Don't forget to install PyQt4:
pip install PyQt4
or download the python Wheel pkg from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4
& install it by:
pip install PyQt4-4.11.4-cp35-none-win_amd64.whl

Getting ImportError: No module named 'Crypto' after installation

I am getting ImportError: No module named 'Crypto' error when trying to run. I have installed pycrypto using pip install pycrypto and updated it also. Everything I have tried to far has been unsuccessful.
Tried:
reinstalling pycrypto,
updating both python and pycrypto
Any suggestions?
The error messages says, it does not able to find the module so please try to run below command,
#pip list -- # what does it show to you, if it would have installed successfully it will show you up there.
if "pip install pycrypto" doesn't work so try to download the source tar ball and try to install it from prompt.
pip download pycrypto
it will download tar.gz file.. so you can install using with pip install --no-index --find-links /path/to/some/dir/ pycrypto
for python3.5 version
python3.5 -m pip install pycrypto
this will install in python3.5 environment and after that you can able to import pycrypto module
Is python defined properly on your machine?
Make sure PATH environment variable has python's installation folder in it

Install .whl error

I want to use curses module in windows.So I found
python celery - ImportError: No module named _curses - while attempting to run manage.py celeryev
And when I want to install, I am getting an error.
I am running
pip install curses-2.2-cp34-none-win32.whl
pip install curses-2.2-cp34-none-win_amd64.whl
pip install --use-wheel curses-2.2-cp34-none-win32.whl
pip install --use-wheel curses-2.2-cp34-none-win_amd64.whl
All it does is display this error:
curses-2.2-cp34-none-*.whl is not a supported wheel on this platform.
Why? How can I solve it?
You probably want the cp27 wheel (cp34 is for CPython 3.4)

Categories