I decided to try and build a simple web browser with python, but even after running pip install PyQt5 and PyQtWebEngine I still get the error ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'.
And before you redirect me to the many other posts on this topic I have tried most of the solutions not they do not work. (I do have the latest version of pip)
Fixed it nvm (I installed python 3.11)
Related
I am runnig a python based application (Odoo) on Ubuntu Server, it is throwing this error in the backend server logs. Some sites suggested to install the missing packages/library html2text.
I have installed that too by running
pip3 install html2text
and verified it by
pip3 show html2text
which shows location of site-packages of python
Location: /home/dell/.local/lib/python3.8/site-packages.
However, the system is still throwing this mentioned error in the logs ModuleNotFoundError: No module named 'html2text' - - -.
Is there anything I am missing related to path or installation steps?
I figured it out myself. The problem was with default python package path installation. Since my application was looking for python packages at this location /usr/lib/python/dist-packages and the package html2text was installed in /home/dell/.local/lib/python3.8/site-packages
I had to install the html2text package in /usr/lib/python/dist-packages by running
sudo pip3 install --target=/usr/lib/python3/dist-packages html2text
I'm trying to import cryptography for my project, but for some reason when I try to install it, I get No module named 'letters'. Through pip and pip3 it worked without any problem, but when I want to install it from settings in PyCharm, the error pops out.
I have installed using: pip install requests yet I continue to get the error:
ModuleNotFoundError: No module named requests
I uninstalled and reinstalled it yet it is still not fixed. Does anyone know the best way to fix this?
I am using python 2.7
ok so I found the solution! I needed to get the source code. I did this by cloning the public repository:
$ git clone git://github.com/psf/requests.git
https://requests.readthedocs.io/en/master/user/install/
I hope this is useful to others.
Link to video tutorial:
https://www.youtube.com/watch?v=7J_qcttfnJA
I followed the entire tutorial and I thought I was free of problems until I tried running it in terminal. Below is the problem that I ran into.
import googleapiclient.discovery
ModuleNotFoundError: No module named 'googleapiclient'
I have been installing different modules for a while and I could not find a solution to this. Does anyone know what the problem is and how i could fix it.
pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-api-python-client
Follow guide from the GitHub https://github.com/googleapis/google-api-python-client
I'm in Win10 and use vanilla Python 3.7.3 (e.g. not conda or anything). I had a successful pip install for the package, the package shows up in pip freeze, and the package is supposed to be compatible with my version of Python. I've seen several threads with similar issues on OS X and Linux, and have tried to emulate their solutions on Windows, but no luck. I'm guessing it could be an issue with my PATH variable, but I'm not quite sure. The error I get when trying to import is the "No module named" error.
Went into site-packages...for some reason the module was named Bio there (everywhere else it's named biopython, again, including pip freeze) and importing that worked. Not sure if this was just a bad dev choice or what.