when I try to run my python programme in Kali Linux I get this error:
python myprogramme.py
ImportError: no module named configobj
so I installed this using these methods
sudo apt install python3-configobj
pip install configobj
both installed successfully however I'm still getting this same error and I wondered if there were any other factors that might be causing the error
thank you
Related
ModuleNotFoundError: No module named 'kivy_deps'
I have already installed kivy but still getting this error.
Please check if you have installed these as well:
pip install kivy-deps.sdl2
pip install kivy-deps.glew
you may need to install these explicitly
Code:
from pycoin.ecdsa.secp256k1 import secp256k1_generator
When I run this, I get the error:
ModuleNotFoundError: No module named 'pycoin'
I've tried doing:
pip3 install pycoin
aswell as
pip install pycoin
Both of which have lead to the same error.
I've ran the code on python and python3 which also leads to the same error.
Any solutions?
Go to terminal or cmd on windows and type python3 (python2, python for older versions)
Then try to import the module there.
If the module in imported successfully then reopen your IDE. and then try.
When I do python -m pip install 'uwsgi==2.0.*'
I'm getting:
/usr/bin/python: No module named pip
which pip gives:
/home/snowcrash/.local/bin/pip
If I do pip I get:
pip
Traceback (most recent call last):
File "/home/snowcrash/.local/bin/pip", line 5, in <module>
from pip._internal.cli.main import main
ImportError: No module named pip._internal.cli.main
This does not seem to help /usr/local/bin/python: No module named pip
I don't know your exact situation, but this suggestions can be helpful:
To fix the No module named pip._internal.cli.main error
It seems like you have a broken pip. I mean, incomplete (and incompatible) parts of pip living in the same Python distribution, that generates... a useless pip. That's why you hit with those weird errors.
Something you can do is re-installing pip (from scratch). Consider tools like get-pip.py or python -m ensurepip. See the reference of this problem at this GitHub issue.
To fix the error with python -m pip
Also, you may have Python 2 installed in addition of Python 3. To verify that, run python --version. If you get a Python 2 version, try python3 --version. If you don't get errors (and receive a Python 3 version), replace python -m pip with python3 -m pip. That should fix your No module named pip issue. Also, you can run python3 -m ensurepip (or python -m ensurepip, if python3 doesn't exist).
However, if that doesn't work, maybe you will have to re-install the whole Python.
I am trying to import some libs, including:
from past.builtins import xrange
problem is, I keep getting this error:
ModuleNotFoundError: No module named 'past'
I've successfully installed and upgraded future, both localy AND on my virtualenv:
C:\Users\JON>pip install future
C:\Users\JON>pip install --upgrade future
(.env) C:\Users\JON>pip install future
(.env) C:\Users\JON>pip install --upgrade future
still, when I run this import on Jupyter I get the error above.
I should mention I'm using Windows 10 and Anaconda+Jupyter for python 3.6
Anybody has an idea why this happens and how to fix it?
Just learning Python here and I can't seem to get my python program to work from line 2 :
from PyQt4.Core import *
I get the following error:
ImportError: no module named Core
From what I can see, usually the programmer is just missing part of python-qt4
I have tried installing (or re-installing as the case may be) the following packages using apt-get, but surprisingly to no avail:
python-qt4 pyqt-tools pyside-tools libqt4-dev build-essential python-sip
I also tried using the interactive shell to do:
PyQt4.Core import SIGNAL
Where I get the same message
apt-get shows that I have the latest version of everything. I recently did an apt-get update and an apt-get upgrade, after installing the above packages then tried apt-get install(each) again. The update had all packages show most recent version is installed.
Still I get the same error message :(