I've installed pgeocode in my PyCharm project folder, through PyCharm, as I have done for other modules but for some reasons it's saying the module is not found.
I also tried installing pgeocode from the command line so it's accesible across all projects but no change
import pgeocode
dist = pgeocode.GeoDistance('GB')
distance = dist.query_postal_code('Postcode1', 'Postcode2')
print(distance)
Looking in my installed PyCharm modules I can see pgeocode there:
Uninstall first using :
pip uninstall pgeocode
Then re-install using :
pip install pgeocode
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.
For class I am using python arcade. I installed it with pip install arcade. When I attempt to import it with import arcade it pops up ModuleNotFoundError: No module named 'arcade'.
Ive uninstalled and reinstalled arcade. It shows up when I enter pip freeze. I am using VS Code on windows 10.
When I look in the 'errors' tab in VS Code it says "Unable to import 'arcade' pylint(import-error)[3,1]"
I used to have the same problem.
The solution in my case was installing modules by running
python -m pip install <module> instead of pip install <module>
I have the same problem in the jupyter notebook and I have solved it as follow:
pip install notebook
I installed a python module, the installation was a success.
I installed it by changing the path in Windows powershell to the folder and then
python setup.py install
but then when i try to import that I get a error message
no module named yahoo_finance
Any idea?
You don't have yahoo_finace module installed.
You can install this module by command:
python -m pip install yahoo_finance
Here you may read more about pip:
https://pip.pypa.io/en/stable/reference/pip/
I am using vagrant to run my python environment. In my data models I am using django-picklefield module.
when I run my server it says
ImportError: No module named picklefield.fields.
I tried to uninstall and install the picklefield module. Still having the same problem.
You should be able install via:
/[your python install directory]/bin/pip install django-picklefield
If you do this directly instead of a general pip call to install django-picklefield, that will ensure that it is installed on the correct version of Python.
Based on your description my best guess is that you have multiple versions of Python installed, and that your install/uninstall is happening on the wrong one.