I am trying to use pdf rendering package Poppler and I found an Anaconda Installation for the same here
https://anaconda.org/conda-forge/poppler
I can see the Poppler package installed in my conda env when I do
conda <env> list
However when I try to import the package in my code by doing
import poppler
I get :
ModuleNotFoundError: No module named 'poppler'
How do I find if this is the right name of the module if its not the name shown in then conda env list.. I believe the package name is the module name with its own classes and methods.
Why is it saying No module?
Related
I have successfully installed textract module using pip install textract on windows 10 after following these steps, but when i try to import textract(using Spyder IDE python 3.6.10 anaconda), i get ModuleNotFoundError: No module named 'textract'.
In command prompt when i enter the pip list command, i can see the mentioned module version 1.6.3, but when i enter conda list i can't find it.
I have added the paths in the system environment variables for conda, and also for pip.
I am new to python, did i miss anything? or is it that i can't import modules installed from pip and it should be installed with conda?
I am using Pycharm Virtual Environment for a project and working on windows 8.1 x64. Trying to do image processing on python and for this needed to import utilities. The package is present at this link. https://pypi.org/project/utilities/
In my code i am using these commands:
from utilities.utilities import Utilities as Utils
import utilities.constants as Constants
and when I try to do pip install utilities or try to install the package from settings, even though it is present there but it gives these errors
ModuleNotFoundError: No module named 'utilities'
How can I install this package if I cannot use pip then how do i manually install from package. Please guide on both.
in my python code I've got the line:
from pyreadability import pyreadability as pyrb
And I'm getting the error :
ImportError: No module named pyreadability
I'm in Ubuntu, using python 2.7 and running code inside a conda env named mzh27.
I already tried these commands but none of them made the error solve
pip install PyReadability
conda install -c anaconda lxml
/home/{usr}/anaconda2/envs/mzh27/bin/pip install PyReadability
pip install readability-lxml
/home/{usr}/anaconda2/envs/mzh27/bin/pip readability-lxml
In all of those cases, the module installed successfully but error was still there.
Any Idea what to do for it?
The problem was the repository I've cloned was missing the file named pyreadability.py. The package was not the one I thought. It was implemented by the repository owner (who forgot to add files to the repository) and just have similar names to python packages that are available to install.
I have in python the error:
ImportError: No module named can
but the strange is that when I check it with pip list in the environment all these libraries are installed:
As you can see in the screenshot, it tells me that the can library is not found, but when I check it with pip list
You are looking pip3 (python 3) list, but program working with python 2.7. You need to install the package with pip command.
I tried to google this tirelessly and couldn't get help at all.
I just pip install bleach and when I tried using in my views.py, import bleach it says ImportError at /mysite/
No module named bleach
I installed from this directory in command prompt:
(env) C:\Python27\Lib\site-packages\env\Scripts\myproject\mysite>pip install bleach
What am I doing wrong?
Installing as admin screws the whole point of using virtualenv
When using virtualenv you are setting a custom place for your libraries. You can use pip install my-package from anywhere after you activated the env and it will place the files in the same place.
While you are in your env try pip_freeze to see what is currently installed in your virtual env.
If you are interested in troubleshooting this issue, run the freeze and check if you are using env as you should.