ModuleNotFoundError: No module named 'pyproj._network'
See original GitHub issueMy answers begin with “–”.
Error is that, I got : “ModuleNotFoundError: No module named ‘pyproj._network’”
- I install pyproj as follows, in Windows shell:
pip install pyproj Requirement already satisfied: pyproj in c:\users\mirouser\appdata\local\programs\python\python37\lib\site-packages (3.2.1) Requirement already satisfied: certifi in c:\users\mirouser\appdata\local\programs\python\python37\lib\site-packages (from pyproj) (2021.5.30)
- After import pyproj, I’ve got:
import pyproj Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “C:\Users\Mirouser\AppData\Local\Programs\Python\Python37\Lib\site-packages\pyproj_init_.py”, line 49, in <module> import pyproj.network File “C:\Users\Mirouser\AppData\Local\Programs\Python\Python37\Lib\site-packages\pyproj\network.py”, line 10, in <module> from pyproj._network import ( # noqa: F401 pylint: disable=unused-import ModuleNotFoundError: No module named ‘pyproj._network’
Installation method/steps
- Installation method: – pip
- How did you install PROJ? Where is it installed? – on Windows, via CMD (shell)
- Please provide all commands/steps you used to install pyproj and PROJ – pip install pyproj
Environment Information
- pyproj version you are attempting to install – 3.2.1
- PROJ version (Execute
proj
command and give version here.) – NameError: name ‘proj’ is not defined - Python version (
python -c "import sys; print(sys.version.replace('\n', ' '))"
) – 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] - Operation System Information (
python -c "import platform; print(platform.platform())"
) – Windows-10-10.0.19041-SP0
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
I think you are likely missing this: https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist
From: https://pyproj4.github.io/pyproj/stable/installation.html
Windows wheels are from: https://www.lfd.uci.edu/~gohlke/pythonlibs/