Am importing opcua in my python file:
from opcua import Client
before i ran python -m pip install opcua and it was succesfully installed
but it is still not resolved after i ran the file
am using python 3.10.4 and i upgraded pip to latest version
You should also install the cryptography module:
pip install cryptography
Opcua depends on it. Once installed it should work.
Related
While installing mysql-connector on cmd prompt using command:
pip3 install mysql-connector
It said installed successfully, but gave this error:
mysql-connector-python 8.0.15 requires protobuf>=3.0.0, which is not
installed windows 8.1
I can't find install instructions for the right version of protobuf, that might be needed.
Later, while making db connection in pycharm using statement
mydb = mysql.connector.connect(host, user, passwd)
I got this error:
ModuleNotFoundError: No module named 'mysql'
Any idea how to proceed? Using python 3.7 on windows 8.1
To install protubuf using pip use,
pip3 install protubuf has version of 3.6.1.
And for mysql ImportError, a package ConfigParser has been renamed to configparser for Python 3.
For that install configparserusing pip again after installing mysql
pip3 install configparser
while installing juypter notebook on my ubuntu 14.04 I am getting this:
ImportError: Tornado requires an up-to-date SSL module. This means Python 2.7.9+ or 3.4+ (although some distributions have backported the necessary changes to older versions).
Pip is:
pip 10.0.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
how to resolve this ?
Latest tornado library doesn't support your interpreter version. You have two options.
Either install old tornado (recommended):
pip install tornado==4.*
pip install jupyter
Or install new python. Ubuntu doesn't provide an official package for it, so you have to use community package:
sudo add-apt-repository ppa:jonathonf/python-2.7
sudo apt-get update
sudo apt-get install python2.7
pip install jupyter
python -m pip install --upgrade pip setuptools wheel
ref: https://packaging.python.org/tutorials/installing-packages/
I've installed wx for python on windows with
pip install wxpython
The python script I'm using tries to import wx.gizmos. The program fails there with error "No module names gizmos". So i've tried to install it with
pip install gizmos,
pip install wxgizmos,
pip install wx.gizmos,
pip install wxpython.gizmos,
pip install wxpythongizmos.
Error is "No matching distribution found for..."
I've been to https://wxpython.org/Phoenix/docs/html/main.html and it appears gizmos is not there and so can't be used but the python script needs it.
Is there a way of installing this or a way arond this ?
I uninstalled python wx using:
pip uninstall wxpython.
and reinstalled it from here:
https://sourceforge.net/projects/wxpython/files/wxPython/2.9.5.0/wxPython2.9-win64-2.9.5.0-py27.exe/download
I use windows 10 64-bit, python 3.6, pip 8.1.2 and kivy 1.9.1. kivywas installed according to the documentation.
After installing kivy I can't import it as I get this error
ImportError: No module named 'kivy'
How can I solve this I searched many times and followed the steps and it ends up with the same problem
Ensure you have the latest pip and wheel:
python -m pip install --upgrade pip wheel setuptools
Install the dependencies (skip gstreamer (~120MB) if not needed, see Kivy’s dependencies):
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
python -m pip install kivy.deps.gstreamer
Note
If you encounter a MemoryError while installing, add after pip install an option
–no-cache-dir
.
For Python 3.5+, you can also use the angle backend instead of glew. This can be installed with:
python -m pip install kivy.deps.angle
Install kivy:
python -m pip install kivy
(Optionally) Install the kivy examples:
python -m pip install kivy_examples
The examples are installed in the share directory under the root directory where python is installed.
This is old, but if anyone stumbles on it the answer can be found here:
trying to install kivy on my pc i get the following errors
All the convenience of wheels can be found with 3.6 now as well as with older versions
I am trying to install the xlrd module on my Mac, however when I open IDLE and import the xlrd module, I get the error:
Input Error: No module named xlrd
To install it, I used in my home directory...
sudo pip install xlrd
... and it is installed successfully.
Note that I have both Python 2.7 and Python 3.4.0 on my computer, in case this is what is causing problems. I want it installed for Python 3.4.0.
To avoid conflicts between parallel Python 2 and Python 3
installations, only the versioned pip3 and pip3.4 commands are
bootstrapped by default
You can try sudo pip3 install xlrd or sudo pip3.4 install xlrd to use the Python 3.4, see docs here https://docs.python.org/3/whatsnew/3.4.html#bootstrapping-pip-by-default