When I was trying to install python package via pip with command "pip install pandas", I got this error
File "c:\users\user1\appdata\local\programs\python\python38\lib\plistlib.py", line 65, in <module>
from xml.parsers.expat import ParserCreate
ModuleNotFoundError: No module named 'xml'
Related
I am trying to use Firebase in my python web app, but when I installed firebase in my venv, everytime I run the python file I get a dependency error. I just kept pip installing them until I got to "No module named 'Crypto'."
I have tried doing:
pip install pycrypto
pip install pycryptodome
Both install successfully, but when I rerun the app I still get "ModuleNotFoundError: No module named 'Crypto'."
I am using visual studio code if that matters. I am installing them to my venv with the visual studio code terminal.
Full error:
Traceback (most recent call last):
File "/Users/dylan/Desktop/Web App/main.py", line 8, in <module>
from firebase import firebase
File "/Users/dylan/Desktop/Web App/venv/lib/python3.8/site-packages/firebase/__init__.py", line 20, in <module>
from Crypto.PublicKey import RSA
ModuleNotFoundError: No module named 'Crypto'
I'm trying to query my openldap server and got error
ModuleNotFoundError: No module named 'ldap'
I already tried to install python packages:
pip install python-ldap
pip install pyldap
pip install ldap(got alot of errors for this one)
And I'm still can't run it.
the code is:
import ldap
con = ldap.initialize('ldap://192.168.14.129')
con.simple_bind_s("cn=Manager,dc=afik,dc=com","xxxxx")
ldap_base = "dc=afik,dc=com"
query = "(uid=hr_user1)"
result = con.simple_bind_s(ldap_base, ldap.SCOP_SUBREE, query)
the error that I getting:
[root#localhost GitShared]# python openldap.py
Traceback (most recent call last):
File "openldap.py", line 1, in <module>
import ldap
ModuleNotFoundError: No module named 'ldap'
[root#localhost GitShared]#
I'm using python 3.6 on a centos 7 machine.
Have installed pip3 via sudo apt-get. But while trying to check the pip3 --version, its throwing
ImportError: No module named 'pip._vendor.requests'
How do i fix this?
server -- Linux Debian 4.9.65-3,
Python version -- Python 3.5.3
p.s. have tried uninstalling and reinstalling pip3 but no luck.
Full stack trace:-
Traceback (most recent call last): File "/usr/bin/pip3", line 9, in
from pip import main File "/usr/lib/python3/dist-packages/pip/init.py", line 21, in
from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning ImportError: No module named 'pip._vendor.requests'
I've installed Anaconda and python 3 on it. Next I've installed django and django-bootstrap3.
It's shown in pip freeze and it is in C:\Users\Asus\Anaconda3\Lib\site-packages folder, but when I run my project this error appears:
ModuleNotFoundError: No module named 'bootstrap3'
why it doesn't know bootstrap 3?
When I try installing mysql-python adaptor with pip3 I get this error message:
$ pip3 install mysql-python
Collecting mysql-python
Using cached https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/vx/gzl69zd16lg9s4_xsgpnldv00000gn/T/pip-build-qkxwtgtw/mysql-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/private/var/folders/vx/gzl69zd16lg9s4_xsgpnldv00000gn/T/pip-build-qkxwtgtw/mysql-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/private/var/folders/vx/gzl69zd16lg9s4_xsgpnldv00000gn/T/pip-build-
qkxwtgtw/mysql-python/
It says it in the error message:
ModuleNotFoundError: No module named 'ConfigParser'
Python 3 ImportError: No module named 'ConfigParser'
ModuleNotFoundError: No module named 'ConfigParser' tells us, that you need ConfigParser to be installed first.
MySQL-python-1.2.5 seems pretty old. Not sure if it supports Python 3. Maybe try https://pypi.python.org/pypi/mysqlclient ?
If you're on Windows, sometimes it helps to download and install from the .whl