I am trying to install ta-lib from a ubuntu console, I had a problem with python versions .. then activate virtual env.
But the problem is that if I install Ta-lib from the file, then when I am going to execute my program the following error comes up:
import talib as ta
ImportError: No module named 'talib'
I don't understand why if I already have the ta-lib library installed
Related
I installed pylibdmtx. When I try to import this I get an error:
from pylibdmtx import pylibdmtx
ImportError: Unable to find dmtx shared library
I am using python 3.8.8 on mac.
try re-installing both, via pip and using apt-get, if this not works, the error is probably that Python wrapper can`t load libdmtx.
pip3 install pylibdmtx
sudo apt-get install libdmtx0a
I installed it this way:
brew install libdmtx
problem solved!
I have installed the oct2py package using the pip command pip install oct2py, set the environement path of python, pip and octave as in the following picture:
However, whenever I try to import it in my python script, I get the following error:
I checked whether the package is installed, it says: Requirement satisfied.
Any ideas of what I could possibly be doing wrong?
I installed miniconda and just created a conda environment:
conda create -n my_env python=3.5 anaconda
I am trying to:
import cvlib
But I am getting the error:
ImportError: No module named cvlib
So I have tried to install using:
pip3 install cvlib
This seemed to work successfully, but then when I try to import cvlib I am still getting the ImportError: No module named cvlib error (I have retarted my terminal after the installation).
Is this a problem with my PYTHONPATH not containing the path to the directory that now contains cvlib? If so, how do I find where cvlib is saved so that I can add the path?
Check if the library is in your python directory. Otherwise, make a repl.it account, and install cvlib, and check the functions or the lib name. Maybe try searching a more advanced installation of cvlib.
it might have occurred due to the version of python you installed or due to the directory, you installed.
try uninstalling the current version of python and try installing an older version of python and install it in the directory as shown below:
C:\Users\Rajish\AppData\Local\Programs\Python\Python39
also, select add the path to environment variables while installing
and after that install cvlib and all other required modules and packages
it worked for me.
Using the Mac Os Terminal, I downloaded the Jupyter lightning module using "pip install lightning-python" in the /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages directory.
However, when I try to import it, I get the error, No module named 'lightning'
and when I list out the files in the site-packages directory, the module doesn't appear.
You are getting the error because you used pip. pip basically is for version 2 of python. for using it for pip3, you should first install pip3 package. Then copy all your dependencies to python3 libraries.
Hope that answers the question.
I use psycopg2 for my django app.
When i run python manage.py collectstatic i see django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named psycopg2.
Then I run pip install psycopg2, but after successful installation pip freeze does not see it. I have installed libpq-devel and python-devel.
What am i doing wrong?
I am using Linux AMI from Amazon (EC2), if it is important.
UPDATE:
i tried to wget source and install it like python setup.py install. Now i can import psycopg2, but still can't do it in virtualenv.
Somehow, package was installed in directory lib64, but all other packages was installed in directory lib, so I copied psycopg2 from lib64 to lib and everything became all right.